issues: 365778456
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
365778456 | MDExOlB1bGxSZXF1ZXN0MjE5NjEzMDM3 | 2453 | plot.contour: Don't make cmap if colors is a single color. | 2448579 | closed | 0 | 0 | 2018-10-02T07:48:43Z | 2019-04-12T16:29:45Z | 2018-10-02T15:46:00Z | MEMBER | 0 | pydata/xarray/pulls/2453 |
By default, matplotlib draws dashed negative contours when a single color is passed to 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(-X2 - Y2) 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')
```
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2453/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |