Skip to content

Commit

Permalink
fix: Propagate default_tools (#6451)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Nov 12, 2024
1 parent 1f534a1 commit 3acfadb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -3068,7 +3068,7 @@ class OverlayPlot(GenericOverlayPlot, LegendPlot):
'min_height', 'max_height', 'min_width', 'min_height',
'margin', 'aspect', 'data_aspect', 'frame_width',
'frame_height', 'responsive', 'fontscale', 'subcoordinate_y',
'subcoordinate_scale', 'autorange']
'subcoordinate_scale', 'autorange', 'default_tools']

def __init__(self, overlay, **kwargs):
self._multi_y_propagation = self.lookup_options(overlay, 'plot').options.get('multi_y', False)
Expand Down
6 changes: 6 additions & 0 deletions holoviews/tests/plotting/bokeh/test_elementplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,12 @@ def test_clim_percentile(self):
assert low > 0
assert high < 1

def test_propagate_tools(self):
scatter = lambda: Scatter([]).opts(default_tools=[])
overlay = scatter() * scatter()
plot = bokeh_renderer.get_plot(overlay)
assert plot.default_tools == []

class TestApplyHardBounds(TestBokehPlot):
def test_apply_hard_bounds(self):
"""Test `apply_hard_bounds` with a single element."""
Expand Down

0 comments on commit 3acfadb

Please sign in to comment.