home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 109583455

This data as json

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
109583455 MDExOlB1bGxSZXF1ZXN0NDY2ODk2MzI= 604 Add subplot_kws arg to plotting interfaces 2443309 closed 0   1307323 5 2015-10-02T22:36:04Z 2016-11-30T08:00:48Z 2015-10-06T15:10:01Z MEMBER   0 pydata/xarray/pulls/604

This argument is only used in the FacetGrid class and allows users to pass arguments to subplot constructor.

The api change is a pretty simple and just accepts a single new argument (subplot_kws). I think we need to think about how to tweak the subplots a bit more in terms of aspect.

Here's some example code that produces the plot below:

``` Python import xray import cartopy.crs as ccrs

ds = xray.open_dataset('xray-data/ncep_temperature_north-america_2013-14.nc') ds.lon -= 360 lon0 = ds.lon.values.mean()

dss = ds.groupby('time.season').mean('time')

g = dss.air.plot.pcolormesh(col='season', col_wrap=2, transform=ccrs.PlateCarree(), subplot_kws=dict(projection=ccrs.PlateCarree(lon0)))

for ax in g.axes.flat: ax.coastlines() ax.gridlines() ax.set_extent((-161.25, -28.75, 20, 40)) ```

Obviously there are some issues with the grid lines too but that may end up getting fixed by a more flexible aspect.

cc @clarkfitzg

closes #603

xref: https://github.com/mwaskom/seaborn/pull/320

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

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 0.824ms · About: xarray-datasette