home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

2 rows where user = 3332539 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

state 2

  • closed 1
  • open 1

type 1

  • issue 2

repo 1

  • xarray 2
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
636200235 MDU6SXNzdWU2MzYyMDAyMzU= 4137 set_boundary removes data from axis on faceting plots markusritschel 3332539 open 0     6 2020-06-10T12:20:29Z 2022-04-18T21:43:56Z   NONE      

I experienced that when using FacetGrid plots and if I want to apply a boundary to the axes, the data from the plots get removed.

A short example to illustrate this:

```python import xarray as xr import matplotlib.path as mpath import cartopy.crs as ccrs import cartopy.feature as cfeature import numpy as np

ds = xr.tutorial.load_dataset('air_temperature')

data = ds.air.isel(time=range(0,2)) p = data.plot(transform=ccrs.PlateCarree(), y="lat", x="lon", col='time', col_wrap=2, subplot_kws={'projection': ccrs.NorthPolarStereo()} )

theta = np.linspace(0, 2*np.pi, 100) center, radius = [0.5, 0.5], 0.5 verts = np.vstack([np.sin(theta), np.cos(theta)]).T circle = mpath.Path(verts * radius + center)

for ax in p.axes.flat: ax.coastlines() ax.gridlines() ax.set_extent([-180,180, 50,90], crs=ccrs.PlateCarree()) #ax.set_boundary(circle, transform=ax.transAxes) ``` With the last line I want to have a circle as a boundary of each axis. This works but the data are not shown anymore:

Commenting the last line in the example shows the data as expected but without the boundary of course:

Any hints on why this isn't working?

Cheers, Markus

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4137/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 issue
449273877 MDU6SXNzdWU0NDkyNzM4Nzc= 2994 xr.Dataset.drop markusritschel 3332539 closed 0     1 2019-05-28T13:36:18Z 2019-06-20T15:48:00Z 2019-06-20T15:48:00Z NONE      

Currently, drop throws an error if one of the labels doesn't exist. It would be nice to have a parameter in the drop method for optionally ignoring errors like in the pandas.DataFrame. From the pandas documentation:

errors : {‘ignore’, ‘raise’}, default ‘raise’ If ‘ignore’, suppress error and only existing labels are dropped.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2994/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 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 1838.676ms · About: xarray-datasette