home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where author_association = "NONE", issue = 225846258 and user = 13760223 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • CommonClimate · 5 ✖

issue 1

  • Changing projections under plot() · 5 ✖

author_association 1

  • NONE · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
299053751 https://github.com/pydata/xarray/issues/1397#issuecomment-299053751 https://api.github.com/repos/pydata/xarray/issues/1397 MDEyOklzc3VlQ29tbWVudDI5OTA1Mzc1MQ== CommonClimate 13760223 2017-05-03T22:30:01Z 2017-05-03T22:30:01Z NONE

Customizing legend, fonts, title, things like that. I'm slowly getting through it - mostly because I am new to cartopy and not that experienced with matplotlib overall.

The biggest trouble I have is with tightening the space between the map and the colorbar at the bottom, but this looks like a cartopy/mpl question, not an xarray question, so I should quit pestering you guys.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing projections under plot() 225846258
299040588 https://github.com/pydata/xarray/issues/1397#issuecomment-299040588 https://api.github.com/repos/pydata/xarray/issues/1397 MDEyOklzc3VlQ29tbWVudDI5OTA0MDU4OA== CommonClimate 13760223 2017-05-03T21:26:49Z 2017-05-03T21:26:49Z NONE

Without a doubt - once I figure out how to do it!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing projections under plot() 225846258
299021450 https://github.com/pydata/xarray/issues/1397#issuecomment-299021450 https://api.github.com/repos/pydata/xarray/issues/1397 MDEyOklzc3VlQ29tbWVudDI5OTAyMTQ1MA== CommonClimate 13760223 2017-05-03T20:11:27Z 2017-05-03T20:11:27Z NONE

Thanks Fabien, this is helpful. It would be great to see how the output of the plot() function can be broadcast to axes or handles, so that they can be manipulated at will. Right now, typing
a = s.Tair[0].plot.pcolormesh(ax=ax, transform=ccrs.PlateCarree(), x='xc', y='yc', cbar_kwargs={'orientation':'horizontal'}); returns a complex object that is a bit forbidding for a first-time user without any example in the doc. A simple example would go a long way, but I understand that everything takes time and no-one is getting paid for this! cheers Julien

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing projections under plot() 225846258
299001180 https://github.com/pydata/xarray/issues/1397#issuecomment-299001180 https://api.github.com/repos/pydata/xarray/issues/1397 MDEyOklzc3VlQ29tbWVudDI5OTAwMTE4MA== CommonClimate 13760223 2017-05-03T18:48:06Z 2017-05-03T18:48:06Z NONE

@fmaussion thanks, I think I know what the problem is: the last command I was using was ax.set_ylim([0,90]), not plt.tight_layout(). With the latter, everything shows up properly with the correct projection. I guess I was working with an older version of the notebook, which had the former command, not the latter.

Bonus question for @shoyer : it's simple to add the colorbar, but not easy to make it horizontal, for instance. Is the idea is that if a lot of customization is desired, users should go with more direct cartopy commands, rather than xarray plotting tools, which are useful for quick checks, but not publication-quality figures?

thanks

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing projections under plot() 225846258
298843881 https://github.com/pydata/xarray/issues/1397#issuecomment-298843881 https://api.github.com/repos/pydata/xarray/issues/1397 MDEyOklzc3VlQ29tbWVudDI5ODg0Mzg4MQ== CommonClimate 13760223 2017-05-03T07:48:21Z 2017-05-03T07:48:21Z NONE

@shoyer thanks for this tip. As you say, having to specify the transform is prodigiously unintuitive for a first-time cartopy user (my case). Unfortunately, I get the problem with or without applying transform=ccrs.PlateCarree().

@fmaussion yes, that is precisely the code I used, switching PlateCarree() for Robinson() in cell 16.

The only output I get when I do this is the bottom legend; the rest of the plot vanishes.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing projections under plot() 225846258

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