home / github / pull_requests

Menu
  • GraphQL API
  • Search all tables

pull_requests: 754281312

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
754281312 PR_kwDOAMm_X84s9Wtg 5847 closed 0 Display coords' units for slice plots 31376402 <!-- Feel free to remove check-list items aren't relevant to your change --> Hi, folks! Thank you for the awesome project! Here is a minor enhancement for the plotting of slices. Before this PR: ```python import xarray as xr import numpy as np dset = xr.Dataset( data_vars=dict( var_a=(("a", "b"), np.array([[1,2], [3,4]])) ), coords=dict( a=("a", np.array([5, 6]), {"unit": "s"}), b=("b", np.array([7, 8]), {"unit": "s"}) ) ) _ = dset.var_a.sel(a=5).plot(marker="o") ``` ![download-5](https://user-images.githubusercontent.com/31376402/136613757-17ddcb8f-1287-4b7d-8fb4-ea2129e962cd.png) After this PR (note the title): ![download-4](https://user-images.githubusercontent.com/31376402/136613784-accca490-4367-4f93-978c-f61eeadaf783.png) --- I did not add any tests, since this change did not break anything I am guessing it is not something being tested. - [ ] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` 2021-10-08T19:18:38Z 2021-10-30T14:06:41Z 2021-10-30T14:06:41Z 2021-10-30T14:06:41Z 3c60814de465fac4e6a0b8e0ca762a26655cc331     0 add9b1aed92b8ed851009b6b0842c0eb3bb98d42 867646fa75cb00413f1c21ca152d07a9bc4eb444 CONTRIBUTOR   13221727 https://github.com/pydata/xarray/pull/5847  

Links from other tables

  • 1 row from pull_requests_id in labels_pull_requests
Powered by Datasette ยท Queries took 0.931ms