pull_requests: 219613037
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
219613037 | MDExOlB1bGxSZXF1ZXN0MjE5NjEzMDM3 | 2453 | closed | 0 | plot.contour: Don't make cmap if colors is a single color. | 2448579 | - [x] Tests added (for all bug fixes or enhancements) - [x] Tests passed (for all non-documentation changes) - [x] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API (remove if this change should not be visible to users, e.g., if it is an internal clean-up, or if this is part of a larger project that will be documented later) By default, matplotlib draws dashed negative contours when a single color is passed to `Axes.contour`. We lost this feature by manually specifying cmap everytime. Currently on master: ``` delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = np.exp(-X**2 - Y**2) Z2 = np.exp(-(X - 1)**2 - (Y - 1)**2) Z = xr.DataArray((Z1 - Z2) * 2, dims=['y', 'x'], coords={'x': x, 'y': y}) f, ax = plt.subplots(1, 2) hdl = ax[0].contour(Z, colors='k') hdlx = Z.plot.contour(ax=ax[1], colors='k') ```  | 2018-10-02T07:48:43Z | 2019-04-12T16:29:45Z | 2018-10-02T15:46:00Z | 2018-10-02T15:46:00Z | 0f70a876759197388d32d6d9f0317f0fe63e0336 | 0 | 4f79ce0d9dff66f0558b7b1af5b5904c940e067f | f9c4169150286fa1aac020ab965380ed21fe1148 | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/2453 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests