holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.7k stars 404 forks source link

Attributes "long_name" and "units" from a xarray.DataArray are not shown #3399

Closed mgorfer closed 5 years ago

mgorfer commented 5 years ago

I have an xarray.DataArray xr_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.

github-actions[bot] commented 2 weeks ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.