issues: 453126577
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
453126577 | MDU6SXNzdWU0NTMxMjY1Nzc= | 3002 | plot.pcolormesh fails with shading='gouraud' | 35968931 | closed | 0 | 5 | 2019-06-06T16:27:00Z | 2020-11-29T16:28:32Z | 2019-06-06T22:26:35Z | MEMBER |
Code Sample, a copy-pastable example if possible```python import matplotlib.pyplot as plt import numpy as np import xarray as xr lon, lat = np.meshgrid(np.linspace(-20, 20, 5), np.linspace(0, 30, 4)) lon += lat/10 lat += lon/10 da = xr.DataArray(np.arange(20).reshape(4, 5), dims=['y', 'x'], coords = {'lat': (('y', 'x'), lat), 'lon': (('y', 'x'), lon)}) da.plot.pcolormesh('lon', 'lat', shading='gouraud') plt.show() ``` Problem descriptionThis gives an error:
Expected OutputThis should give almost the same image as in the documentation, just with smoother shading: |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3002/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |