holoviz / geoviews

Simple, concise geographical visualization in Python
http://geoviews.org
BSD 3-Clause "New" or "Revised" License
584 stars 75 forks source link

gv.QuadMesh doesn't work, but hv.QuadMesh works #246

Closed ahuang11 closed 5 years ago

ahuang11 commented 5 years ago
import xarray as xr
import cartopy.crs as ccrs
import holoviews as hv
import geoviews as gv

hv.extension('matplotlib')
ds = xr.tutorial.load_dataset('air_temperature')
gv.QuadMesh(ds.isel(time=0))
 AxisError: axis 1 is out of bounds for array of dimension 1

:QuadMesh   [lon,lat]   (air)
ahuang11 commented 5 years ago
gv.Image(ds.isel(time=0), [LON, LAT], ['air'], crs=ccrs.PlateCarree())
hv.QuadMesh(ds.isel(time=0), [LON, LAT], ['air'])
hv.Image(ds.isel(time=0), [LON, LAT], ['air'])

all work

philippjfr commented 5 years ago

Should be fixed by https://github.com/pyviz/geoviews/pull/248