We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9456b97 commit 4244488Copy full SHA for 4244488
1 file changed
holoviews/core/data/xarray.py
@@ -83,6 +83,8 @@ def retrieve_unit_and_label(dim):
83
dim = asdim(dim)
84
coord = data[dim.name]
85
unit = coord.attrs.get('units') if dim.unit is None else dim.unit
86
+ if isinstance(unit, tuple):
87
+ unit = unit[0]
88
if 'long_name' in coord.attrs:
89
spec = (dim.name, coord.attrs['long_name'])
90
else:
0 commit comments