Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ms_plotter works #176

Open
wants to merge 19 commits into
base: units
Choose a base branch
from
Open

ms_plotter works #176

wants to merge 19 commits into from

Conversation

AlexanderKrabbe
Copy link
Contributor

ms_plotter works

ms_plotter.vs() needs some clean up

The main thing is how pint lets you set a matplotlib formatter for the units, so when axes are passed on, the label dynamically updates if the unit of the axes shoul change:

ax = meas_ms.plot()
ax.yaxis.get_unit() -> "A"
ax.yaxis.set_units(ureg.nA)
plt.plot()

data is correctly plotted

There is a nice thing about pint with their class Context.

This class could be a nice way to provide context for the measurement when units changes from mol/s to mol/s/cm^2

…y. This cannot be done closer to the dataseries since the measurement owns the dataseries and not referencing the dataseries?
… subsequent derivatives e.i grab fluxes for siq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant