home / github / pull_requests

Menu
  • Search all tables
  • GraphQL API

pull_requests: 585774268

This data as json

id node_id number state locked title user body created_at updated_at closed_at merged_at merge_commit_sha assignee milestone draft head base author_association auto_merge repo url merged_by
585774268 MDExOlB1bGxSZXF1ZXN0NTg1Nzc0MjY4 5003 closed 0 Add Dataset.plot.streamplot() method 3958036 Since @dcherian added Quiver plots in #4407, it's fairly simple to extend the functionality to `streamplot()`. For example (copying from @dcherian's unit test setup) ``` import xarray as xr from matplotlib import pyplot as plt das = [ xr.DataArray( np.random.randn(3, 3), dims=["x", "y"], coords=[range(k) for k in [3, 3]], ) for _ in [1, 2] ] ds = xr.Dataset({"u": das[0], "v": das[1]}) ds["mag"] = np.hypot(ds.u, ds.v) ds.plot.streamplot(x="x",y="y",u="u",v="v", hue="mag") plt.show() ``` ![streamplot](https://user-images.githubusercontent.com/3958036/110155196-311a8c80-7ddd-11eb-99ea-06232cffcc30.png) - [x] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [x] New functions/methods are listed in `api.rst` 2021-03-05T17:41:49Z 2021-03-30T16:41:08Z 2021-03-30T16:41:07Z 2021-03-30T16:41:07Z ba47216ec1cd2f170fd85a10f232be7bf3ecc578     0 e49fd0ec36aff8366a6970342a88a3175e769d8c 2bbac154ddacd6d6ec989b040130cd9afb8dc0a1 CONTRIBUTOR   13221727 https://github.com/pydata/xarray/pull/5003  

Links from other tables

  • 0 rows from pull_requests_id in labels_pull_requests
Powered by Datasette · Queries took 1.075ms