This is a plotting kit for using Analog Discovery 2 for the courses ESDA I and ESDA II for MTELSYS at NTNU, Trondheim.
- Python 2 or 3
- tkinter
- Download the intended asset underneath Releases.
- Navigate to the downloaded folder with terminal or finder / explorer.
- Run the python script i.e. with
python3 main.py
.
If the name of your CSV data file contains the name of your defined plot types, the program will automatically select til plot type, so there is no need for manual input in the terminal.
Out-of-the-box detection keywords:
- Scope
- Bode
- Spectrum
If a plot is missing important values in its configuration, the program will prompt the user for input. As of now, this check is only limited to plot legends and legend position. However updates to this feature may follow in the near future.
- Create plot script in the
plots/
folder. - Create relevant config options for the new plot in the
config
variable inconf/config.py
. - Add the plot to the function mapping in
handlers/plothandler.py
Change the global variables in conf/globals.py
to the default filepaths you want the file selector should open in. You can also set your prefered filetype for storing plots, but .svg
is strongly recommended.
To enable automatic plot saving, change the autoSave variable in conf/config.py
'autoSave': True
To enable logarithmic scaling, change the logarithmicAxisX variable in conf/config.py
'logarithmicAxisX': True
Change variables in conf/config.py
to match the data from your plot.
- Ian Philip Eglin - ipeglin