home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER" and issue = 110807626 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
  • jhamman 1

issue 1

  • Improve plot aspect handling when using cartopy · 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
459888596 https://github.com/pydata/xarray/issues/619#issuecomment-459888596 https://api.github.com/repos/pydata/xarray/issues/619 MDEyOklzc3VlQ29tbWVudDQ1OTg4ODU5Ng== dcherian 2448579 2019-02-01T22:23:19Z 2019-02-01T22:25:23Z MEMBER

Found a solution for 1. This function works really well even when resizing a figure on matplotlib 3.0.2:

``` python def make_colorbar(ax, mappable, **kwargs): from mpl_toolkits.axes_grid1 import make_axes_locatable import matplotlib as mpl

divider = make_axes_locatable(ax)
orientation = kwargs.pop('orientation', 'vertical')
if orientation == 'vertical':
    loc = 'right'
elif orientation == 'horizontal':
    loc = 'bottom'

cax = divider.append_axes(loc, '5%', pad='3%', axes_class=mpl.pyplot.Axes)
ax.get_figure().colorbar(mappable, cax=cax, orientation=orientation)

```

```python import cartopy.crs as ccrs import xarray as xr

ds = xr.tutorial.open_dataset('air_temperature').load()

ax = plt.subplot(projection=ccrs.LambertConformal()) mappable = ds.air.isel(time=0).plot(transform=ccrs.PlateCarree(), add_colorbar=False) ax.coastlines() ax.gridlines()

make_colorbar(ax, mappable, orientation='vertical') ```

``` python ds = xr.tutorial.open_dataset('air_temperature').load()

ax = plt.subplot(projection=ccrs.LambertConformal()) mappable = ds.air.isel(time=0).plot(transform=ccrs.PlateCarree(), add_colorbar=False) ax.coastlines() ax.gridlines()

make_colorbar(ax, mappable, orientation='horizontal') ```

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improve plot aspect handling when using cartopy 110807626
459816688 https://github.com/pydata/xarray/issues/619#issuecomment-459816688 https://api.github.com/repos/pydata/xarray/issues/619 MDEyOklzc3VlQ29tbWVudDQ1OTgxNjY4OA== dcherian 2448579 2019-02-01T18:16:11Z 2019-02-01T18:24:02Z MEMBER

One possible solution: https://joseph-long.com/writing/colorbars/

Another approach: https://stackoverflow.com/questions/30030328/correct-placement-of-colorbar-relative-to-geo-axes-cartopy

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improve plot aspect handling when using cartopy 110807626
459467927 https://github.com/pydata/xarray/issues/619#issuecomment-459467927 https://api.github.com/repos/pydata/xarray/issues/619 MDEyOklzc3VlQ29tbWVudDQ1OTQ2NzkyNw== jhamman 2443309 2019-01-31T19:10:37Z 2019-01-31T19:10:37Z MEMBER

This is still a problem.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Improve plot aspect handling when using cartopy 110807626

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