Skip to content

Commit

Permalink
Fixed shared_axes/axiswise regression (#4097)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 22, 2019
1 parent 7d744c9 commit 46de6aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ def _axes_props(self, plots, subplots, element, ranges):

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

# Get the Element that determines the range and get_extents
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def compute_ranges(self, obj, key, ranges):
# been supplied from a composite plot
return_fn = lambda x: x if isinstance(x, Element) else None
for group, (axiswise, framewise) in norm_opts.items():
axiswise = not getattr(self, 'shared_axes', not axiswise)
axiswise = (not getattr(self, 'shared_axes', True)) or (axiswise)
elements = []
# Skip if ranges are cached or already computed by a
# higher-level container object.
Expand Down

0 comments on commit 46de6aa

Please sign in to comment.