pull_requests: 170108215
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
170108215 | MDExOlB1bGxSZXF1ZXN0MTcwMTA4MjE1 | 1926 | closed | 0 | Add x,y kwargs for plot.line(). | 2448579 | - [x] Partially closes #575 - [x] Tests added - [x] Tests passed - [x] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API ### Description `plot.line` now supports both 1D and 2D DataArrays as input. I've changed some variable names to make code clearer: 1. set `xplt`, `yplt` to be values that are passed to `ax.plot()` 2. `xlabel`, `ylabel` are axes labels 3. `xdim`, `ydim` are dimension names ### Example This code ```z = np.arange(10) da = xr.DataArray(np.cos(z), dims=['z'], coords=[z], name='f') xy = [[None, None], [None, 'f'], [None, 'z'], ['f', None], ['z', None], ['z', 'f'], ['f', 'z']] f, ax = plt.subplots(2,4) for aa, (x,y) in enumerate(xy): da.plot(x=x, y=y, ax=ax.flat[aa]) ax.flat[aa].set_title('x='+str(x)+ ' | '+'y='+str(y)) ``` yields  ### Feedback requested Should I refactor out the kwarg checking? | 2018-02-20T06:04:35Z | 2018-05-10T05:12:03Z | 2018-03-05T22:14:46Z | 2018-03-05T22:14:45Z | 4983f1f26070162d274de03971a7b13bb6048490 | 0 | cf2526071863c1b001c7b1a333ead7d81dcf9f3c | dc3eebf3a514cfdc1039b63f2a542121d1328ba9 | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/1926 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests