html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/6775#issuecomment-1181561385,https://api.github.com/repos/pydata/xarray/issues/6775,1181561385,IC_kwDOAMm_X85GbTIp,14371165,2022-07-12T09:55:40Z,2022-07-12T09:55:40Z,MEMBER,"Looks buggy indeed. But maybe `either_string` needs to handle `z` inputs as well? 
Do you want to create a pull request?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1301380358
https://github.com/pydata/xarray/issues/6775#issuecomment-1181171290,https://api.github.com/repos/pydata/xarray/issues/6775,1181171290,IC_kwDOAMm_X85GZz5a,35001974,2022-07-12T00:31:58Z,2022-07-12T02:52:43Z,NONE,"suggested patch:
```diff
@@ -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:
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1301380358