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 ( 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 |
{ "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 |