home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER" and issue = 548483156 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • dcherian 2
  • mathause 1

issue 1

  • imshow RGB plot overlaps map borders when using projection · 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
575598339 https://github.com/pydata/xarray/issues/3687#issuecomment-575598339 https://api.github.com/repos/pydata/xarray/issues/3687 MDEyOklzc3VlQ29tbWVudDU3NTU5ODMzOQ== mathause 10194086 2020-01-17T11:58:33Z 2020-01-17T11:58:33Z MEMBER

This happens in matplotlib when you pass an RGBA array. Thus the following should cause the same problem.

python ax = plt.subplot(projection=ccrs.Robinson()) ax.imshow(ds.isel(time=[0, 1, 4, 8]).transpose('lat', 'lon', 'time').values[-1::-1, :, :], transform=ccrs.PlateCarree())

I.e. it is an matplotlib or cartopy error. However, xarray always adds an alpha channel internally, see

https://github.com/pydata/xarray/blob/8a650a11d1f859a88cc91b8815c16597203892aa/xarray/plot/plot.py#L901-L903

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  imshow RGB plot overlaps map borders when using projection 548483156
573806802 https://github.com/pydata/xarray/issues/3687#issuecomment-573806802 https://api.github.com/repos/pydata/xarray/issues/3687 MDEyOklzc3VlQ29tbWVudDU3MzgwNjgwMg== dcherian 2448579 2020-01-13T18:35:14Z 2020-01-13T18:35:14Z MEMBER

Thanks, I'm marking this as a bug.

If you have the time, it would be nice if you could look into this and send in a PR.

We do some RGB stuff here: https://github.com/pydata/xarray/blob/8a650a11d1f859a88cc91b8815c16597203892aa/xarray/plot/plot.py#L632-L642

and imshow is here: https://github.com/pydata/xarray/blob/8a650a11d1f859a88cc91b8815c16597203892aa/xarray/plot/plot.py#L843-L915

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  imshow RGB plot overlaps map borders when using projection 548483156
573784386 https://github.com/pydata/xarray/issues/3687#issuecomment-573784386 https://api.github.com/repos/pydata/xarray/issues/3687 MDEyOklzc3VlQ29tbWVudDU3Mzc4NDM4Ng== dcherian 2448579 2020-01-13T17:44:35Z 2020-01-13T17:44:35Z MEMBER

Does this work if you use matplotlib directly? i.e. plt.plot(ds.isel(time=[0, 4, 8]).values, ...)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  imshow RGB plot overlaps map borders when using projection 548483156

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