You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plots generated from .plot methods look odd in jupyter notebooks and regular matplotlib #241
When I run the plotting examples from the documentation, e.g. from here, in jupyter lab the generated plots have multiple overlapping elements, including widgets that don't work.
EDIT: The plots look about the same in matplotlib run from ipython. Screenshot added.
changed the title [-]Plots generated from `.plot` methods look odd in jupyter notebooks[/-][+]Plots generated from `.plot` methods look odd in jupyter notebooks and regular matplotlib[/+]on May 18, 2023
The default unit is unfortunately picked by astropy.wcs.WCS, which defaults everything to SI. What we need to do is write a unit-preserving WCS wrapper in astropy core, because by the time NDCube / WCSAxes get's given the WCS object there's no indication that it used to be in nm left anywhere.
Activity
[-]Plots generated from `.plot` methods look odd in jupyter notebooks[/-][+]Plots generated from `.plot` methods look odd in jupyter notebooks and regular matplotlib[/+]nabobalis commentedon May 18, 2023
I think is is a result of picking the default unit as metres instead of nm.
I can try work out how to fix that.
Cadair commentedon May 19, 2023
The default unit is unfortunately picked by
astropy.wcs.WCS, which defaults everything to SI. What we need to do is write a unit-preservingWCSwrapper in astropy core, because by the time NDCube / WCSAxes get's given theWCSobject there's no indication that it used to be in nm left anywhere.