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-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
https://github.com/pydata/xarray/issues/3232#issuecomment-851494928,https://api.github.com/repos/pydata/xarray/issues/3232,851494928,MDEyOklzc3VlQ29tbWVudDg1MTQ5NDkyOA==,35001974,2021-05-31T13:32:29Z,2021-05-31T13:32:29Z,NONE,Thanks for the prompt response. Would love to contribute but I have to climb the learning curve first.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307
https://github.com/pydata/xarray/issues/3232#issuecomment-851118675,https://api.github.com/repos/pydata/xarray/issues/3232,851118675,MDEyOklzc3VlQ29tbWVudDg1MTExODY3NQ==,35001974,2021-05-31T02:09:07Z,2021-05-31T02:09:07Z,NONE,@Duane321 or @keewis do you have the full code example for making this work? I'm a novice on numpy ufuncs and am trying to use get gradients while keeping my xarray coords.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,482543307