holoviz / hvplot

A high-level plotting API for pandas, dask, xarray, and networkx built on HoloViews
https://hvplot.holoviz.org
BSD 3-Clause "New" or "Revised" License
1.08k stars 105 forks source link

Using quadmesh with interactive #646

Closed andhuang-CLGX closed 2 years ago

andhuang-CLGX commented 3 years ago

AttributeError: 'function' object has no attribute 'quadmesh'

ds.air.interactive.hvplot.quadmesh()
jbednar commented 3 years ago

Hmm; none of the accessors seem to work with xarray .interactive (.scatter, .points, etc.). Reproducer:

import xarray as xr, hvplot.xarray
ds = xr.tutorial.open_dataset('air_temperature').load()
ds.air.interactive.hvplot.points()
itsgifnotjiff commented 2 years ago

Same here using

xdsi = xds.QQ.interactive.sel(**sel_dict)
xdsi.hvplot.quadmesh()

where xds is an xarray.DataSet and sel_dict is a valid and working set of widgets.

hoxbro commented 2 years ago

This should be fixed with https://github.com/holoviz/hvplot/pull/781

Until then you should be able to do something like xdsi.hvplot(..., kind='quadmesh')