home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1021396447

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
1021396447 PR_kwDOAMm_X84s9Wtg 5847 Display coords' units for slice plots 31376402 closed 0     10 2021-10-08T19:18:38Z 2021-10-30T14:06:41Z 2021-10-30T14:06:41Z CONTRIBUTOR   0 pydata/xarray/pulls/5847

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") ```

After this PR (note the title):


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
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5847/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 1 row from issues_id in issues_labels
  • 10 rows from issue in issue_comments
Powered by Datasette · Queries took 0.794ms · About: xarray-datasette