Fixed filtering of bokeh LineAnnotationPlot properties
@@ -65,8 +65,8 @@ class LineAnnotationPlot(ElementPlot):
"""
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
