home / github / pull_requests

Menu
  • Search all tables
  • GraphQL API

pull_requests: 46689632

This data as json

id node_id number state locked title user body created_at updated_at closed_at merged_at merge_commit_sha assignee milestone draft head base author_association auto_merge repo url merged_by
46689632 MDExOlB1bGxSZXF1ZXN0NDY2ODk2MzI= 604 closed 0 Add subplot_kws arg to plotting interfaces 2443309 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)) ``` ![projection1](https://cloud.githubusercontent.com/assets/2443309/10259220/a1f694a4-691a-11e5-805c-2fbbafcab773.png) 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 2015-10-02T22:36:04Z 2016-11-30T08:00:48Z 2015-10-06T15:10:01Z 2015-10-06T15:10:00Z b5749f006c11827562f6042afc7a83f3b2ccee2a   1307323 0 98946aa7cd7338b0643b738e7c1c713d6d53bc3f 89adda5e719a2bba6231310e3726185597f9beab MEMBER   13221727 https://github.com/pydata/xarray/pull/604  

Links from other tables

  • 2 rows from pull_requests_id in labels_pull_requests
Powered by Datasette · Queries took 0.779ms