From 2e4979b3ffd15c77c8e0bcb64acdcff2641eb04c Mon Sep 17 00:00:00 2001 From: Demetris Roumis Date: Tue, 22 Oct 2024 08:30:38 -0700 Subject: [PATCH] Apply scalebar length to subcoordinate_y range (#6420) --- holoviews/plotting/bokeh/element.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index 04f0a910f0..567cf1799a 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -2443,6 +2443,8 @@ def _draw_scalebar(self, *, plot, renderer): 'background_fill_color': 'white', 'background_fill_alpha': 0.6, 'length_sizing': 'adaptive', + 'bar_length_units': 'data', + 'bar_length': 0.8, # Adding location so people can overwrite the default 'location': location, }