Skip to content

Commit

Permalink
Remove RGBA in hover
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Dec 17, 2024
1 parent 8f4378e commit 48f91a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions holoviews/plotting/bokeh/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ def _init_tools(self, element, callbacks=None):
ht = [ht] if isinstance(ht, str) else ht
coords = [c for c in coords if c in ht]
vars = [v for v in vars if v in ht]
elif isinstance(self, RGBPlot):
# Remove vdims (RGBA) as they are not very useful
for vdim in map(str, element.vdims):
if vdim in vars:
vars.remove(vdim)

dims = (*coords, *vars)

# Create a dynamic custom DataModel with the dims as attributes
Expand Down

0 comments on commit 48f91a5

Please sign in to comment.