From b46f5efd1210a1e8d6f34e88ba40dea541933430 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 28 Jan 2021 11:44:26 +0100 Subject: [PATCH] Fix 'auto' glyphs on Renderer --- holoviews/plotting/bokeh/element.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index 4e44e6cd01..b8ce6eb6d8 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -1244,6 +1244,10 @@ def _update_glyph(self, renderer, properties, mapping, glyph, source, data): for glyph_type in ('', 'selection_', 'nonselection_', 'hover_', 'muted_'): if renderer: glyph = getattr(renderer, glyph_type+'glyph', None) + if glyph == 'auto': + base_glyph = renderer.glyph + glyph = type(base_glyph)(**base_glyph.properties_with_values()) + setattr(renderer, glyph_type+'glyph', glyph) if not glyph or (not renderer and glyph_type): continue filtered = self._filter_properties(merged, glyph_type, allowed_properties)