Skip to content

Commit

Permalink
Also intialize autorange on overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Apr 15, 2024
1 parent 02fed4b commit 633ea9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -2968,6 +2968,9 @@ def initialize_plot(self, ranges=None, plot=None, plots=None):
if self.top_level:
self.init_links()

if self.autorange:
self._setup_autorange()

self._execute_hooks(element)

return self.handles['plot']
Expand Down
3 changes: 1 addition & 2 deletions holoviews/tests/ui/bokeh/test_autorange.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,4 @@ def test_autorange_overlay(serve_hv):
page.mouse.up()

y_range = plot.handles['y_range']
expected = (-171.25714285714287, 318.0489795918367)
wait_until(lambda: np.allclose((y_range.start, y_range.end), expected) , page)
wait_until(lambda: y_range.start == -486 and y_range.end == 486, page)

0 comments on commit 633ea9b

Please sign in to comment.