issues: 309481761
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
309481761 | MDU6SXNzdWUzMDk0ODE3NjE= | 2024 | multiple facetgrid.map calls screw up colorbar | 2448579 | closed | 0 | 2 | 2018-03-28T18:34:02Z | 2018-09-26T00:55:33Z | 2018-09-26T00:55:33Z | MEMBER | Code Sample, a copy-pastable example if possibleThis code ```python da = xr.DataArray(np.random.randn(10, 20, 8)) hdl = da.plot(col_wrap = 4, row='dim_2') ``` yields this image:
Then, running this: ``` def mark_point(color='k'): plt.plot(10, 4, 'ko') hdl.map(mark_point) ``` gives Problem descriptionCalling Quoting https://matplotlib.org/users/tight_layout_guide.html#colorbar
So the solution could involve writing a custom colorbar function. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2024/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |