{"database": "github", "table": "issues", "is_view": false, "human_description_en": "where state_reason = \"completed\", \"updated_at\" is on date 2020-11-29 and user = 35968931 sorted by updated_at descending", "rows": [[453126577, "MDU6SXNzdWU0NTMxMjY1Nzc=", 3002, "plot.pcolormesh fails with shading='gouraud'", 35968931, "closed", 0, null, null, 5, "2019-06-06T16:27:00Z", "2020-11-29T16:28:32Z", "2019-06-06T22:26:35Z", "MEMBER", null, null, null, "`xarray.plot.pcolormesh()` fails when you pass the `matplotlib.pyplot.pcolormesh()` keyword argument `shading='gouraud'` to it.\r\n\r\n#### Code Sample, a copy-pastable example if possible\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nimport xarray as xr\r\n\r\nlon, lat = np.meshgrid(np.linspace(-20, 20, 5), np.linspace(0, 30, 4))\r\nlon += lat/10\r\nlat += lon/10\r\n\r\nda = xr.DataArray(np.arange(20).reshape(4, 5), dims=['y', 'x'],\r\n                  coords = {'lat': (('y', 'x'), lat),\r\n                            'lon': (('y', 'x'), lon)})\r\n\r\nda.plot.pcolormesh('lon', 'lat', shading='gouraud')\r\nplt.show()\r\n```\r\n\r\n#### Problem description\r\n\r\nThis gives an error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"mwe.py\", line 17, in <module>\r\n    da.plot.pcolormesh('lon', 'lat', shading='gouraud')\r\n  File \"/home/tegn500/Documents/Work/Code/xarray/xarray/plot/plot.py\", line 721, in plotmethod\r\n    return newplotfunc(**allargs)\r\n  File \"/home/tegn500/Documents/Work/Code/xarray/xarray/plot/plot.py\", line 662, in newplotfunc\r\n    **kwargs)\r\n  File \"/home/tegn500/Documents/Work/Code/xarray/xarray/plot/plot.py\", line 864, in pcolormesh\r\n    primitive = ax.pcolormesh(x, y, z, **kwargs)\r\n  File \"/home/tegn500/anaconda3/envs/py36/lib/python3.6/site-packages/matplotlib/__init__.py\", line 1805, in inner\r\n    return func(ax, *args, **kwargs)\r\n  File \"/home/tegn500/anaconda3/envs/py36/lib/python3.6/site-packages/matplotlib/axes/_axes.py\", line 5971, in pcolormesh\r\n    X, Y, C = self._pcolorargs('pcolormesh', *args, allmatch=allmatch)\r\n  File \"/home/tegn500/anaconda3/envs/py36/lib/python3.6/site-packages/matplotlib/axes/_axes.py\", line 5559, in _pcolorargs\r\n    C.shape, Nx, Ny, funcname))\r\nTypeError: Dimensions of C (4, 5) are incompatible with X (6) and/or Y (5); see help(pcolormesh)\r\n```\r\n\r\n#### Expected Output\r\n\r\nThis should give almost the same image as in the documentation, just with smoother shading:\r\n\r\n![Figure_1](https://user-images.githubusercontent.com/35968931/59049474-f68a6580-887f-11e9-83db-697c38acdf5e.png)\r\n\r\n", "{\"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}", null, "completed", 13221727, "issue"]], "truncated": false, "filtered_table_rows_count": 1, "expanded_columns": [], "expandable_columns": [[{"column": "repo", "other_table": "repos", "other_column": "id"}, "name"], [{"column": "milestone", "other_table": "milestones", "other_column": "id"}, "title"], [{"column": "assignee", "other_table": "users", "other_column": "id"}, "login"], [{"column": "user", "other_table": "users", "other_column": "id"}, "login"]], "columns": ["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"], "primary_keys": ["id"], "units": {}, "query": {"sql": "select 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 from issues where \"state_reason\" = :p0 and date(\"updated_at\") = :p1 and \"user\" = :p2 order by updated_at desc limit 101", "params": {"p0": "completed", "p1": "2020-11-29", "p2": "35968931"}}, "facet_results": {"state": {"name": "state", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931", "results": [{"value": "closed", "label": "closed", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931&state=closed", "selected": false}], "truncated": false}, "repo": {"name": "repo", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931", "results": [{"value": 13221727, "label": "xarray", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931&repo=13221727", "selected": false}], "truncated": false}, "type": {"name": "type", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931", "results": [{"value": "issue", "label": "issue", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931&type=issue", "selected": false}], "truncated": false}}, "suggested_facets": [{"name": "created_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931&_facet_date=created_at"}, {"name": "updated_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931&_facet_date=updated_at"}, {"name": "closed_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?state_reason=completed&updated_at__date=2020-11-29&user=35968931&_facet_date=closed_at"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 26.170498225837946}