Skip to content

Commit

Permalink
Ensure properties with falsey values are applied on update
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Aug 9, 2021
1 parent 63f553e commit 12558ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/bokeh/element.py
Expand Up @@ -1205,9 +1205,9 @@ def _filter_properties(self, properties, glyph_type, allowed):
for gtype in ((glyph_type, '') if glyph_type else ('',)):
for prop in ('color', 'alpha'):
glyph_prop = properties.get(gtype+prop)
if glyph_prop and ('line_'+prop not in glyph_props or gtype):
if glyph_prop is not None and ('line_'+prop not in glyph_props or gtype):
glyph_props['line_'+prop] = glyph_prop
if glyph_prop and ('fill_'+prop not in glyph_props or gtype):
if glyph_prop is not None and ('fill_'+prop not in glyph_props or gtype):
glyph_props['fill_'+prop] = glyph_prop

props = {k[len(gtype):]: v for k, v in glyph_props.items()
Expand Down

0 comments on commit 12558ea

Please sign in to comment.