I have an xarray.DataArrayxr_ds.temperature
My coordinates time and pressure have the attributes long_name and units
If I do
hv.QuadMesh(xr_ds.temperature)
the axes have to correct labels, consisting out of the attributes: long_name (units)
But I want to have a different axes order, so I do
hv.QuadMesh(xr_ds.temperature, kdims=['time', 'pressure'])
In this case the the order is correct but only time and pressure are used as labels and long_name and units are not shown.
My workaround is hv.Dataset(xr_ds.temperature).to(hv.QuadMesh, kdims=['time', 'pressure'])
In this case the order of the axes and the labeling is working.
I have an
xarray.DataArray
xr_ds.temperature
My coordinatestime
andpressure
have the attributeslong_name
andunits
If I do
hv.QuadMesh(xr_ds.temperature)
the axes have to correct labels, consisting out of the attributes:long_name (units)
But I want to have a different axes order, so I do
hv.QuadMesh(xr_ds.temperature, kdims=['time', 'pressure'])
In this case the the order is correct but onlytime
andpressure
are used as labels andlong_name
andunits
are not shown.My workaround is
hv.Dataset(xr_ds.temperature).to(hv.QuadMesh, kdims=['time', 'pressure'])
In this case the order of the axes and the labeling is working.