home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "MEMBER" and issue = 438694589 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 2

  • dcherian 2
  • mathause 2

issue 1

  • Facetgrid: colors beyond range (extend) not saturated · 4 ✖

author_association 1

  • MEMBER · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
605635427 https://github.com/pydata/xarray/issues/2932#issuecomment-605635427 https://api.github.com/repos/pydata/xarray/issues/2932 MDEyOklzc3VlQ29tbWVudDYwNTYzNTQyNw== dcherian 2448579 2020-03-29T13:26:42Z 2020-03-29T13:26:42Z MEMBER

Seems to work now? probably fixed by #3601

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Facetgrid: colors beyond range (extend) not saturated 438694589
504677016 https://github.com/pydata/xarray/issues/2932#issuecomment-504677016 https://api.github.com/repos/pydata/xarray/issues/2932 MDEyOklzc3VlQ29tbWVudDUwNDY3NzAxNg== dcherian 2448579 2019-06-22T15:54:08Z 2019-06-22T15:54:08Z MEMBER

See #3038

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Facetgrid: colors beyond range (extend) not saturated 438694589
487947321 https://github.com/pydata/xarray/issues/2932#issuecomment-487947321 https://api.github.com/repos/pydata/xarray/issues/2932 MDEyOklzc3VlQ29tbWVudDQ4Nzk0NzMyMQ== mathause 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
}
  Facetgrid: colors beyond range (extend) not saturated 438694589
487963898 https://github.com/pydata/xarray/issues/2932#issuecomment-487963898 https://api.github.com/repos/pydata/xarray/issues/2932 MDEyOklzc3VlQ29tbWVudDQ4Nzk2Mzg5OA== mathause 10194086 2019-04-30T14:01:14Z 2019-04-30T14:01:14Z MEMBER

The easiest way to fix this is probably to reset the cmap in facetgrid.py Lines 224-227 ``` python

cmap = kwargs.get('cmap', None)

cmap_params, cbar_kwargs = _process_cmap_cbar_kwargs(func, kwargs, self.data.values)

# reset the colormap #GH2932 cmap_params['cmap'] = cmap ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Facetgrid: colors beyond range (extend) not saturated 438694589

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 13.437ms · About: xarray-datasette