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
Using non-datetime units (from pint) works fine and the axes are labelled correctly, so this is perhaps an issue specifically with datetime or list of datetimes?
importmatplotlib.pyplotaspltimportnumpyasnpimportpintureg=pint.UnitRegistry()
ureg.setup_matplotlib()
X, Y=np.meshgrid(np.linspace(-3, 3, 16), np.linspace(-3, 3, 16))
C=X**2+Y**2X=X*ureg.mY=Y*ureg.mfig, ax=plt.subplots()
ax.pcolormesh(X, Y, C)
plt.show()
Specifically the issue seems to be _AxesBase.update_datalim() does not like being given List[Tuple[datetime.datetime, datetime.datetime] becasue np.isfinite doesn't work on that type.
Uh oh!
There was an error while loading. Please reload this page.
Bug summary
As found in #27450, the
X
/Y
arguments topcolorfast
do not support units.Code for reproduction
Actual outcome
Expected outcome
A plot similar to
pcolormesh
, with dates on the x/y axis.Additional information
No response
Operating system
No response
Matplotlib Version
589d3fb
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
git checkout
The text was updated successfully, but these errors were encountered: