Skip to content

Commit 46de6aa

Browse files
committed
Fixed shared_axes/axiswise regression (#4097)
1 parent 7d744c9 commit 46de6aa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

holoviews/plotting/bokeh/element.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ def _axes_props(self, plots, subplots, element, ranges):
352352

353353
plot_ranges = {}
354354
# Try finding shared ranges in other plots in the same Layout
355-
if plots and self.shared_axes:
355+
norm_opts = self.lookup_options(el, 'norm').options
356+
if plots and self.shared_axes and not norm_opts.get('axiswise', False):
356357
plot_ranges = self._merge_ranges(plots, xspecs, yspecs)
357358

358359
# Get the Element that determines the range and get_extents

holoviews/plotting/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def compute_ranges(self, obj, key, ranges):
375375
# been supplied from a composite plot
376376
return_fn = lambda x: x if isinstance(x, Element) else None
377377
for group, (axiswise, framewise) in norm_opts.items():
378-
axiswise = not getattr(self, 'shared_axes', not axiswise)
378+
axiswise = (not getattr(self, 'shared_axes', True)) or (axiswise)
379379
elements = []
380380
# Skip if ranges are cached or already computed by a
381381
# higher-level container object.

0 commit comments

Comments
 (0)