Astropy: WCSAxes Major Formatter Does Not Update When Format Unit is Changed

Created on 31 Oct 2019  ·  3Comments  ·  Source: astropy/astropy

Description


The WCSAxes Major Formatter Does Not Update When Format Unit is Changed.

Expected behavior


Expected behaviour is that the Major formatter updates itself such that an appropriate precision is used by on the units.

Actual behavior



The above does not happen. In the below example, the y axis is stored in the WCS as metres and then changed to nm for the plot. However, as can be seen the precision is kept leading to many extraneous 0s.
image

visualization.wcsaxes

Most helpful comment

@pllim - you don't have to assign me, @Cadair is an expert too now! :)

All 3 comments

What are the versions?

The plot was made with dev, but I believe that it's the same on all past releases as well.

@pllim - you don't have to assign me, @Cadair is an expert too now! :)

Was this page helpful?
0 / 5 - 0 ratings