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
In this case a monthly resolution is chosen for the ticks, but a tick format of "%Y" is used, giving the false impression that the ticks represent the beginning of years. I would expect for monthly resolution ticks, a format of "%Y-%m" would be used. In this example this would result in a plot that looked like this:
If possible it would be great if we could make sure that inconsistencies like the above example could be avoided.
Yes, this is still a live issue and would be great to fix someday. I think it can wait until a future nc-time-axis release, however, since it involves a little more than just catching up with changes in upstream packages.
I'm going to create a 1.4.0 milestone, project and GH discussion, so that we can easily triage all such issues and PRs, and it'll help slowly shape the content of the next, next release 😉
The code that chooses the resolution of the ticks and the code that chooses the format of the ticks are sometimes not consistent with each other. This can lead to confusing axis tick labels, e.g. in the following example provided by @klindsay28:
In this case a monthly resolution is chosen for the ticks, but a tick format of
"%Y"
is used, giving the false impression that the ticks represent the beginning of years. I would expect for monthly resolution ticks, a format of"%Y-%m"
would be used. In this example this would result in a plot that looked like this:If possible it would be great if we could make sure that inconsistencies like the above example could be avoided.
xref: pydata/xarray#4401
The text was updated successfully, but these errors were encountered: