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
proplot doesn't seem to know how to handle cftime too well, which is increasingly more common in xarray now and can handle various climate model calendars, making it pretty useful.
It looks like the auto-generated datetime axis fails and tries to fill in every single time step:
I don't have time to check on this right now, but I think that may be that you need to install nc-time-axis (https://github.com/SciTools/nc-time-axis). You usually need to install that to get cftime objects in xarray datasets to plot with their xarray.Dataset.plot() command.
Activity
lukelbd commentedon Jan 9, 2020
Yikes. Thanks for the report, will try to get to this soon
lukelbd commentedon Feb 10, 2020
It looks like this is not supported natively by matplotlib. Do you get the same result?
...results in:
[-]Bad rendering of `cftime` time axes[/-][+]Support rendering of `cftime` time axes[/+]bradyrx commentedon Feb 10, 2020
I don't have time to check on this right now, but I think that may be that you need to install
nc-time-axis(https://github.com/SciTools/nc-time-axis). You usually need to install that to getcftimeobjects inxarraydatasets to plot with theirxarray.Dataset.plot()command.bradyrx commentedon Feb 10, 2020
Note that I have that installed in my environment and was still getting issues with
proplot. So it didn't extend through toproplot.lukelbd commentedon Feb 10, 2020
I discovered the problem; will close this soon.
lukelbd commentedon Feb 11, 2020
I decided to also release a new version (v0.5.0), which includes Fabio's colormaps and this fix. Feel free to update.