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
@@ -1446,9 +1446,10 @@ def pcolormesh(x, y, z, ax, xscale=None, yscale=None, infer_intervals=None, **kw
else:
infer_intervals = True
+ either_string = np.issubdtype(x.dtype, str) or np.issubdtype(y.dtype, str)
if (
infer_intervals
- and not np.issubdtype(x.dtype, str)+ and not either_string
and (
(np.shape(x)[0] == np.shape(z)[1])
or ((x.ndim > 1) and (np.shape(x)[1] == np.shape(z)[1]))
@@ -1463,7 +1464,7 @@ def pcolormesh(x, y, z, ax, xscale=None, yscale=None, infer_intervals=None, **kw
if (
infer_intervals
- and not np.issubdtype(y.dtype, str)+ and not either_string
and (np.shape(y)[0] == np.shape(z)[0])
):
if len(y.shape) == 1:
What happened?
The below code fails - I believe its because
_infer_interval_breaks
is applied asymmetrically when one coord is string.What did you expect to happen?
Success.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
No response
Anything else we need to know?
No response
Environment
The text was updated successfully, but these errors were encountered: