sigvaldm / metaplot

Metadata-based plotting from CSV and similar files
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Constant input from terminal broken #28

Closed sigvaldm closed 5 years ago

sigvaldm commented 5 years ago

E.g. -8.74 is -8.74 amperes, not microamperes. This might have fixed itself after implementing better units control for plots. To be tested, and fixed if necessary. Should be a minor issue with the new units control part.

sigvaldm commented 5 years ago

Now it's not possible to easily specify units, and dimensionality error occurs. It is also not auto-inferred. Auto-inferred units should be assumed to be specified in base units.

sigvaldm commented 5 years ago

Plotting of constants repaired.

This is a non-trivial fix now that equalization of the axes are implemented, e.g. that axes may automatically change units to suit all the plots in the figure. It requires constants to also have a unit in order to know how to scale them. Units are now auto-inferred. They are assumed to be of the same dimensionality as other quantities in the plot, but in base units. Thus if other quantities plotted are currents, for instance a mixture of uA and mA, a constant from the terminal without unit will be assumed to be A. 1e-6 is then 1 uA. It is still not possible to specify units directly from CLI.