From eff525332862442e9345a47024c788158b66fb11 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 2 Mar 2017 13:20:34 +0000 Subject: [PATCH] Fixed filtering of bokeh LineAnnotationPlot properties --- holoviews/plotting/bokeh/annotation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/holoviews/plotting/bokeh/annotation.py b/holoviews/plotting/bokeh/annotation.py index 6c21d228a5..722afbf650 100644 --- a/holoviews/plotting/bokeh/annotation.py +++ b/holoviews/plotting/bokeh/annotation.py @@ -65,8 +65,8 @@ def _init_glyph(self, plot, mapping, properties): """ Returns a Bokeh glyph object. """ - properties.pop('source') - properties.pop('legend') + properties = {p: v for p, v in properties.items() + if p not in ['source', 'legend']} box = Span(level='overlay', **dict(mapping, **properties)) plot.renderers.append(box) return None, box