-
Notifications
You must be signed in to change notification settings - Fork 281
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
Incorrect time axis units for iris.quickplot.plot
#615
Comments
I've been thinking about this recently too. A part of me is tempted to hook the label into the AutoDateFormatter and update the label with something like |
If the labels are "absolute times" (e.g. "Jan 17", "8:30am", etc) then I'd ditch the units. But there will also be occasions where we have "relative times" (e.g. a forecast period of 6 hours) so the label would just be "6" and we need the units. |
I agree with @rhattersley. |
To be clear I was definitely only referring to time coordinates where a reference unit is used, and that are automatically transformed to absolute dates/times. Other times should preserve units. |
Remove quickplot unit label for time reference coordinates. Closes #615.
When making a 1D plot where time is a coordinate with
iris.quickplot.plot
the label for the time coordinate is "Time / units", where units is a udunits time unit e.g. days since 1900-01-01 00:00:0.0. However, since the time coordinate will have been translated into date/time for the plot the units part no longer makes sense, and should not be displayed.An example:
The text was updated successfully, but these errors were encountered: