home / github / issues

Menu
  • Search all tables
  • GraphQL API

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 plot

t.isel(time=0).air.plot.geocolormesh() plt.show()

facet grid, no coastlines

f = t.isel(time=slice(0, 3)).air.plot.geocolormesh(col='time', coastlines=False)

higher resolution coastlines

for ax in f.axes.flatten(): ax.coastlines(resolution='50m')

plt.show()

import matplotlib.pyplot as plt

if a matplotlib axis is passed, defaults to pcolormesh

ax = 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

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 8 rows from issue in issue_comments
Powered by Datasette · Queries took 0.627ms · About: xarray-datasette