{"database": "github", "table": "issues", "is_view": false, "human_description_en": "where comments = 2, state = \"closed\" and user = 3958036 sorted by updated_at descending", "rows": [[842583817, "MDU6SXNzdWU4NDI1ODM4MTc=", 5084, "plot_surface() wrapper", 3958036, "closed", 0, null, null, 2, "2021-03-27T19:16:09Z", "2021-05-03T13:05:02Z", "2021-05-03T13:05:02Z", "CONTRIBUTOR", null, null, null, "Is there an xarray way to make a surface plot, like matplotlib's `plot_surface()`? I didn't see one on a quick skim, but expect it should be fairly easy to add, following the style for `contour()`, `pcolormesh()`, etc.? For the matplotlib version, see https://matplotlib.org/stable/gallery/mplot3d/surface3d.html.", "{\"url\": \"https://api.github.com/repos/pydata/xarray/issues/5084/reactions\", \"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, "completed", 13221727, "issue"], [823290488, "MDExOlB1bGxSZXF1ZXN0NTg1Nzc0MjY4", 5003, "Add Dataset.plot.streamplot() method", 3958036, "closed", 0, null, null, 2, "2021-03-05T17:41:49Z", "2021-03-30T16:41:08Z", "2021-03-30T16:41:07Z", "CONTRIBUTOR", null, 0, "pydata/xarray/pulls/5003", "Since @dcherian added Quiver plots in #4407, it's fairly simple to extend the functionality to `streamplot()`.\r\n\r\nFor example (copying from @dcherian's unit test setup)\r\n```\r\nimport xarray as xr\r\nfrom matplotlib import pyplot as plt\r\n\r\ndas = [\r\n    xr.DataArray(\r\n        np.random.randn(3, 3),\r\n        dims=[\"x\", \"y\"],\r\n        coords=[range(k) for k in [3, 3]],\r\n    )\r\n   for _ in [1, 2]\r\n]\r\nds = xr.Dataset({\"u\": das[0], \"v\": das[1]})\r\nds[\"mag\"] = np.hypot(ds.u, ds.v)\r\nds.plot.streamplot(x=\"x\",y=\"y\",u=\"u\",v=\"v\", hue=\"mag\")\r\nplt.show()\r\n```\r\n![streamplot](https://user-images.githubusercontent.com/3958036/110155196-311a8c80-7ddd-11eb-99ea-06232cffcc30.png)\r\n\r\n\r\n- [x] Tests added\r\n- [x] Passes `pre-commit run --all-files`\r\n- [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst`\r\n- [x] New functions/methods are listed in `api.rst`\r\n", "{\"url\": \"https://api.github.com/repos/pydata/xarray/issues/5003/reactions\", \"total_count\": 1, \"+1\": 1, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, null, 13221727, "pull"]], "truncated": false, "filtered_table_rows_count": 2, "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 \"comments\" = :p0 and \"state\" = :p1 and \"user\" = :p2 order by updated_at desc limit 101", "params": {"p0": "2", "p1": "closed", "p2": "3958036"}}, "facet_results": {"state": {"name": "state", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?comments=2&state=closed&user=3958036", "results": [{"value": "closed", "label": "closed", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?comments=2&user=3958036", "selected": true}], "truncated": false}, "repo": {"name": "repo", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?comments=2&state=closed&user=3958036", "results": [{"value": 13221727, "label": "xarray", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?comments=2&state=closed&user=3958036&repo=13221727", "selected": false}], "truncated": false}, "type": {"name": "type", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?comments=2&state=closed&user=3958036", "results": [{"value": "issue", "label": "issue", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?comments=2&state=closed&user=3958036&type=issue", "selected": false}, {"value": "pull", "label": "pull", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?comments=2&state=closed&user=3958036&type=pull", "selected": false}], "truncated": false}}, "suggested_facets": [{"name": "created_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?comments=2&state=closed&user=3958036&_facet_date=created_at"}, {"name": "updated_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?comments=2&state=closed&user=3958036&_facet_date=updated_at"}, {"name": "closed_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?comments=2&state=closed&user=3958036&_facet_date=closed_at"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 26.401969138532877}