def _snap_xlim(self): """ Reset the plotted x rng to show all the data """ is_log = self.xlog rng = self._visible_limits(0) if rng is None: return rng = relim(rng[0], rng[1], is_log) if self.xflip: rng = rng[::-1] self.axes.set_xlim(rng) self._pull_properties()
def _snap_ylim(self): """ Reset the plotted y rng to show all the data """ rng = [np.infty, -np.infty] is_log = self.ylog rng = self._visible_limits(1) if rng is None: return rng = relim(rng[0], rng[1], is_log) if self.yflip: rng = rng[::-1] self.axes.set_ylim(rng) self._pull_properties()