Skip to content

Commit

Permalink
Apply default opts on empty plot
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Sep 13, 2024
1 parent ddbc31f commit 09eb44a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion holonote/annotate/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,9 @@ def static_indicators(self, **events):
and self.annotator.visible is not None
and not len(self.annotator.visible)
):
return hv.NdOverlay({0: self._make_empty_element()}) # .opts(show_legend=False)
el = self._make_empty_element()
el_opts = getattr(hv.opts, type(el).__name__)(**_default_opts)
return hv.NdOverlay({0: el}).opts(el_opts)

if self.annotator.groupby and self.annotator.visible:
indicator = indicator.get(self.annotator.visible)
Expand Down

0 comments on commit 09eb44a

Please sign in to comment.