For a physics project, I created a function that plot density,pressure,temperature and gravity depend of mass and radius.
However, depending of the parameters, the values can varied by many order of magnitude. Since I want to keep my graph clean, I want the max value to always be between 1 and 1000 and change the axis name if needed (ie : K,kK,MK,GK, etc for the temperature).
The first probleme is pretty straightforward, I just scale all my value depending of the maximum value.
But I don’t know how I can automatically change my axis name’s.
submitted by /u/gowipe2004
[link] [comments]
r/learnpython For a physics project, I created a function that plot density,pressure,temperature and gravity depend of mass and radius. However, depending of the parameters, the values can varied by many order of magnitude. Since I want to keep my graph clean, I want the max value to always be between 1 and 1000 and change the axis name if needed (ie : K,kK,MK,GK, etc for the temperature). The first probleme is pretty straightforward, I just scale all my value depending of the maximum value. But I don’t know how I can automatically change my axis name’s. submitted by /u/gowipe2004 [link] [comments]
For a physics project, I created a function that plot density,pressure,temperature and gravity depend of mass and radius.
However, depending of the parameters, the values can varied by many order of magnitude. Since I want to keep my graph clean, I want the max value to always be between 1 and 1000 and change the axis name if needed (ie : K,kK,MK,GK, etc for the temperature).
The first probleme is pretty straightforward, I just scale all my value depending of the maximum value.
But I don’t know how I can automatically change my axis name’s.
submitted by /u/gowipe2004
[link] [comments]