issues: 134321867
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
134321867 | MDU6SXNzdWUxMzQzMjE4Njc= | 766 | colormap with vmin vmax | 10194086 | closed | 0 | 3 | 2016-02-17T16:02:30Z | 2016-02-18T08:38:50Z | 2016-02-18T08:06:05Z | MEMBER | When specifying a negative vmin and a positive vmax the ``` import xarray as xr import matplotlib.pyplot as plt airtemps = xr.tutorial.load_dataset('air_temperature') air2d = airtemps.air.isel(time=500) - 273.15 diverging colormapair2d.plot.pcolormesh() plt.show() viridisair2d.plot.pcolormesh(vmin=-24, vmax=24) plt.show() ------------------------------------------------------------the solution:diverging colormapair2d.plot.pcolormesh(vmin=-24, center=0) plt.show() ``` EDIT: solution and working example |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/766/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |