home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

1 row where repo = 13221727, state = "open" and user = 761677 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • issue 1

state 1

  • open · 1 ✖

repo 1

  • xarray · 1 ✖
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
258735262 MDU6SXNzdWUyNTg3MzUyNjI= 1578 Contourplot not producing plot when data below colorbar level and extend='neither' jorgsk 761677 open 0     7 2017-09-19T08:23:14Z 2019-03-29T22:44:15Z   NONE      

I'm plotting several datasets on a map with contourf with the same colorbar levels where some datasets have no data above the lowest level. I expect these plots to simply be blank. The default behavior is instead that 'extend' becomes set to 'min' behind the scenes, changing the colorabar relative to the other plots. When I set extend to 'neither' explicitly, I get an error from matplotlib: "ValueError: 'bboxes' cannot be empty". The plot call looks like this:

data.plot.contourf(ax=ax, transform=ccrs.PlateCarree(), vmin=levels[0], vmax=levels[-1], levels=levels, cmap=plt.get_cmap('viridis_r'), extend='neither', extent=(-17, 25, 52, 73)

I found that if I revert this bug-fixe from Cartopy: https://github.com/SciTools/cartopy/issues/811 I get the expected behavior.

Not sure if this issue should go to Cartopy but I'm starting here.

Matplotlib version 2.0.0 Xarray version 0.9.6 Cartopy version 0.15.1

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1578/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 issue

Advanced export

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

CSV options:

CREATE TABLE [issues] (
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [number] INTEGER,
   [title] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [state] TEXT,
   [locked] INTEGER,
   [assignee] INTEGER REFERENCES [users]([id]),
   [milestone] INTEGER REFERENCES [milestones]([id]),
   [comments] INTEGER,
   [created_at] TEXT,
   [updated_at] TEXT,
   [closed_at] TEXT,
   [author_association] TEXT,
   [active_lock_reason] TEXT,
   [draft] INTEGER,
   [pull_request] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [state_reason] TEXT,
   [repo] INTEGER REFERENCES [repos]([id]),
   [type] TEXT
);
CREATE INDEX [idx_issues_repo]
    ON [issues] ([repo]);
CREATE INDEX [idx_issues_milestone]
    ON [issues] ([milestone]);
CREATE INDEX [idx_issues_assignee]
    ON [issues] ([assignee]);
CREATE INDEX [idx_issues_user]
    ON [issues] ([user]);
Powered by Datasette · Queries took 32.814ms · About: xarray-datasette