home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 487947321

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2932#issuecomment-487947321 https://api.github.com/repos/pydata/xarray/issues/2932 487947321 MDEyOklzc3VlQ29tbWVudDQ4Nzk0NzMyMQ== 10194086 2019-04-30T13:15:05Z 2019-05-02T09:00:07Z MEMBER

For completeness I add the minimal example

``` python %matplotlib

import numpy as np; import xarray as xr da = xr.tutorial.open_dataset('air_temperature').air cmap = 'RdBu_r' levels = np.arange(240,300+1,10) da.isel(time=slice(4)).plot(cmap=cmap, col='time', levels=levels, extend='both') ```

What I think happens is that the cmap is determined twice. First in facetgrid.py. This returns a matplotlib.colors.ListedColormap with 6 colors. Then this reduced colormap is used in plot.py. However, now it only has 6 colors to choose from, so the _over and _under colors are the same as the first and last color.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  438694589
Powered by Datasette · Queries took 0.522ms · About: xarray-datasette