home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 618141254 and user = 10194086 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 1

  • mathause · 3 ✖

issue 1

  • Colormap Normalisation Giving Unexpected/Incorrect Output · 3 ✖

author_association 1

  • MEMBER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
629695308 https://github.com/pydata/xarray/issues/4061#issuecomment-629695308 https://api.github.com/repos/pydata/xarray/issues/4061 MDEyOklzc3VlQ29tbWVudDYyOTY5NTMwOA== mathause 10194086 2020-05-16T19:30:14Z 2020-05-16T19:30:14Z MEMBER

That's probably gonna need a extend="both"

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Colormap Normalisation Giving Unexpected/Incorrect Output 618141254
629387430 https://github.com/pydata/xarray/issues/4061#issuecomment-629387430 https://api.github.com/repos/pydata/xarray/issues/4061 MDEyOklzc3VlQ29tbWVudDYyOTM4NzQzMA== mathause 10194086 2020-05-15T17:33:33Z 2020-05-15T17:33:33Z MEMBER

If you use python norm = colors.BoundaryNorm(boundaries=bounds, ncolors=9) it works. A new norm with ncolors=9 is built in _build_discrete_cmap - however, it is not used as norm is already defined:

https://github.com/pydata/xarray/blob/2542a63f6ebed1a464af7fc74b9f3bf302925803/xarray/plot/utils.py#L290-L292

The fix might be to use:

python if levels is not None or isinstance(norm, mpl.colors.BoundaryNorm): cmap, norm = _build_discrete_cmap(cmap, levels, extend, filled) this breaks one test which is probably fixable (it tests that the norm is not changed when it is given).

Note that mpl seems to use a LinearSegmentedColormap while xarray creates a ListedColormap.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Colormap Normalisation Giving Unexpected/Incorrect Output 618141254
629197481 https://github.com/pydata/xarray/issues/4061#issuecomment-629197481 https://api.github.com/repos/pydata/xarray/issues/4061 MDEyOklzc3VlQ29tbWVudDYyOTE5NzQ4MQ== mathause 10194086 2020-05-15T12:05:39Z 2020-05-15T12:05:39Z MEMBER

What should also work is img = ds['var'].plot(ax=ax, cmap=cmap, levels=levels)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Colormap Normalisation Giving Unexpected/Incorrect Output 618141254

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 1299.036ms · About: xarray-datasette