issues: 160009256
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
160009256 | MDExOlB1bGxSZXF1ZXN0NzM2MTcxNTk= | 882 | add geocolormesh | 10194086 | closed | 0 | 8 | 2016-06-13T17:59:24Z | 2016-08-25T20:42:34Z | 2016-08-25T20:42:34Z | MEMBER | 0 | pydata/xarray/pulls/882 | Addresses #880 (partially): Automatically create a cartopy GeoAxis for easier plotting of map data. Works for single plots and for FacetGrids. If a normal pyplot axes is passed, defaults to pcolormesh. Example: ``` import xarray as xr t = xr.tutorial.load_dataset('air_temperature') simple plott.isel(time=0).air.plot.geocolormesh() plt.show() facet grid, no coastlinesf = t.isel(time=slice(0, 3)).air.plot.geocolormesh(col='time', coastlines=False) higher resolution coastlinesfor ax in f.axes.flatten(): ax.coastlines(resolution='50m') plt.show() import matplotlib.pyplot as plt if a matplotlib axis is passed, defaults to pcolormeshax = plt.axes() t.isel(time=0).air.plot.geocolormesh(ax=ax) plt.show() ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/882/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |