issues: 528062816
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
528062816 | MDU6SXNzdWU1MjgwNjI4MTY= | 3571 | Binned coordinates (pd.Interval) not plottable on the y-axis. | 1186928 | closed | 0 | 1 | 2019-11-25T12:44:40Z | 2020-01-22T21:09:39Z | 2020-01-22T21:09:39Z | CONTRIBUTOR | Minimal Code Sample```python import numpy as np import xarray as xr import matplotlib.pyplot as plt create fake datadata = xr.DataArray(np.random.rand(101)).rename('data') group by bins and compute sumbins = np.linspace(0, 1, 11) data = data.groupby_bins(data, bins).sum() plot group meansdata.plot() # works data.plot(x='data_bins') # works plt.plot((bins[:-1]+bins[1:])/2, data) # works plot with axes transposeddata.plot(y='data_bins') # TypeError data.plot.line(y='data_bins') # TypeError plt.plot(data, (bins[:-1]+bins[1:])/2) # workaround ``` Expected OutputI would like to plot binned data (produced with Problem DescriptionAttempting to plot using an array of
Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3571/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |