Skip to content

Commit

Permalink
Improved range updates for bokeh server
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 26, 2017
1 parent 6dd4257 commit 0f4e00f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions holoviews/plotting/bokeh/element.py
Expand Up @@ -530,9 +530,10 @@ def _update_ranges(self, element, ranges):
xfactors, yfactors = None, None
if any(isinstance(ax_range, FactorRange) for ax_range in [x_range, y_range]):
xfactors, yfactors = self._get_factors(element)
if not self.model_changed(x_range):
framewise = self.framewise
if not self.drawn or (not self.model_changed(x_range) and framewise):
self._update_range(x_range, l, r, xfactors, self.invert_xaxis, self._shared['x'])
if not self.model_changed(y_range):
if not self.drawn or (not self.model_changed(y_range) and framewise):
self._update_range(y_range, b, t, yfactors, self.invert_yaxis, self._shared['y'])


Expand Down

0 comments on commit 0f4e00f

Please sign in to comment.