home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 226252313

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/882#issuecomment-226252313 https://api.github.com/repos/pydata/xarray/issues/882 226252313 MDEyOklzc3VlQ29tbWVudDIyNjI1MjMxMw== 1217238 2016-06-15T17:03:07Z 2016-06-15T17:03:07Z MEMBER

I'm pretty sure it's possible to add cartopy axes to a FacetGrid using the subplot_kwds argument already. Unfortunately, I don't have any examples handy since I wrote that code at my last job.

What this code does is add the projection=ccrs.PlateCarree() automatically, along with a few other geo specific niceties. I made that suggestion for cartopy itself (https://github.com/SciTools/cartopy/issues/645) but it hasn't been acted on yet.

I agree that this is a good fit for xarray because the plotting API is difficult to extend externally. One nice way to present this to users could be to make a geoplot accessor that works like the current plot accessor but adds these geo specific options. Then you could write, e.g., data.geoplot.pcolormesh().

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  160009256
Powered by Datasette · Queries took 3.045ms · About: xarray-datasette