-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
plot.pcolormesh fails with shading='gouraud' #3002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found this on googling: matplotlib/matplotlib#8422 |
Oh thanks @dcherian ! That's confusing because this works: plt.pcolormesh(da['lon'].values, da['lat'].values, da.values, shading='gouraud') but it looks like matplotlib is the problem, I'll close this. |
This might be an |
I tried da.plot.pcolormesh('lon', 'lat', shading='gouraud', infer_intervals=True) but got the same error unfortunately. |
I had the same problem. I found that
does work. Would be nice if I guess the problem is that 'gouraud' needs the coordinate positions at the grid points, and I assume |
xarray.plot.pcolormesh()
fails when you pass thematplotlib.pyplot.pcolormesh()
keyword argumentshading='gouraud'
to it.Code Sample, a copy-pastable example if possible
Problem description
This gives an error:
Expected Output
This should give almost the same image as in the documentation, just with smoother shading:
The text was updated successfully, but these errors were encountered: