Skip to content

Commit

Permalink
Ensure axis are inverted after shared axis ranges are combined
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 12, 2018
1 parent a65ef97 commit c666eaa
Showing 1 changed file with 1 addition 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 @@ -567,10 +567,10 @@ def _update_range(self, axis_range, low, high, factors, invert, shared, log, str
offset = abs(low*0.1 if low else 0.5)
low -= offset
high += offset
if invert: low, high = high, low
if shared:
shared = (axis_range.start, axis_range.end)
low, high = util.max_range([(low, high), shared])
if invert: low, high = high, low
if not isinstance(low, util.datetime_types) and log and (low is None or low <= 0):
low = 0.01 if high < 0.01 else 10**(np.log10(high)-2)
self.warning("Logarithmic axis range encountered value less than or equal to zero, "
Expand Down

0 comments on commit c666eaa

Please sign in to comment.