A snippet of code to create a line plot in matplotlib
The config.py file locates all the design parameters (e.g. colors, line width, figure size e.t.c) for the plots. You can easily change just the parameters in configuraiton file and re-run the script.
./run_all.sh
./line_plot.py -h
will show:
Options:
-h, --help show this help message and exit
-i FILE, --input=FILE
Input File/s
-o FILE, --output=FILE
Output File
-x XLABEL, --xlabel=XLABEL
X-label
-y YLABEL, --ylabel=YLABEL
X-label