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/3002#issuecomment-735419937,https://api.github.com/repos/pydata/xarray/issues/3002,735419937,MDEyOklzc3VlQ29tbWVudDczNTQxOTkzNw==,3958036,2020-11-29T16:28:32Z,2020-11-29T16:28:32Z,CONTRIBUTOR,"I had the same problem. I found that
```
da.plot.pcolormesh('lon', 'lat', shading='gouraud', infer_intervals=False)
```
does work. Would be nice if `shading='gouraud'` worked by default though.
I guess the problem is that 'gouraud' needs the coordinate positions at the grid points, and I assume `infer_intervals=True` is creating coordinate values at the grid-cell corners (so an n x m DataArray is plotted using coordinates with lengh (n+1) and (m+1). I haven't looked into what `infer_intervals` actually does though. Would it be safe to just turn it off if `shading='gouraud'` is used?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,453126577
https://github.com/pydata/xarray/issues/3002#issuecomment-499800529,https://api.github.com/repos/pydata/xarray/issues/3002,499800529,MDEyOklzc3VlQ29tbWVudDQ5OTgwMDUyOQ==,35968931,2019-06-07T08:22:02Z,2019-06-07T08:22:02Z,MEMBER,"I tried
```python
da.plot.pcolormesh('lon', 'lat', shading='gouraud', infer_intervals=True)
```
but got the same error unfortunately.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,453126577
https://github.com/pydata/xarray/issues/3002#issuecomment-499694802,https://api.github.com/repos/pydata/xarray/issues/3002,499694802,MDEyOklzc3VlQ29tbWVudDQ5OTY5NDgwMg==,2448579,2019-06-06T22:43:24Z,2019-06-06T22:43:24Z,MEMBER,"This might be an `infer_interval_breaks` issue?
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,453126577
https://github.com/pydata/xarray/issues/3002#issuecomment-499690759,https://api.github.com/repos/pydata/xarray/issues/3002,499690759,MDEyOklzc3VlQ29tbWVudDQ5OTY5MDc1OQ==,35968931,2019-06-06T22:26:35Z,2019-06-06T22:26:35Z,MEMBER,"Oh thanks @dcherian !
That's confusing because this works:
```python
plt.pcolormesh(da['lon'].values, da['lat'].values, da.values, shading='gouraud')
```
but it looks like matplotlib is the problem, I'll close this.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,453126577
https://github.com/pydata/xarray/issues/3002#issuecomment-499586759,https://api.github.com/repos/pydata/xarray/issues/3002,499586759,MDEyOklzc3VlQ29tbWVudDQ5OTU4Njc1OQ==,2448579,2019-06-06T17:16:07Z,2019-06-06T17:16:07Z,MEMBER,I found this on googling: https://github.com/matplotlib/matplotlib/issues/8422,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,453126577