So here is my scenario:
I have a python script, call it myscript.py
. Within this script, different types of data can be generated etc. When I run this script from the command line, I want to be able to input a 'plotting mode', like 1, 2, 3, etc. So far I know how to do that.
What I want to do with those plotting modes however, is where I am stuck.
Essentially, I want to say that if the plotting mode is 1, then execute a particular plotting routine, with say, 5 subplots, showing particular data in a certain way.
If the plotting mode is 2 lets say, then execute a completely different plotting routine, with 3 data types, showing them in a very particular way, etc etc.
I am not clear on how exactly go to about doing that. I suppose the easiest way is to simply map the plotting mode to an if/else statement, which calls particular functions, but I was wondering if there was a more elegant way?
Thanks