Set the spine bounds. Parameters ---------- low : float or None, optional The lower spine bound. Passing *None* leaves the limit unchanged. The bounds may also be passed as the tuple (*low*, *high*) as the first positional argume
(self, low=None, high=None)
| 413 | + self.axes.transData) |
| 414 | |
| 415 | def set_bounds(self, low=None, high=None): |
| 416 | """ |
| 417 | Set the spine bounds. |
| 418 | |
| 419 | Parameters |
| 420 | ---------- |
| 421 | low : float or None, optional |
| 422 | The lower spine bound. Passing *None* leaves the limit unchanged. |
| 423 | |
| 424 | The bounds may also be passed as the tuple (*low*, *high*) as the |
| 425 | first positional argument. |
| 426 | |
| 427 | .. ACCEPTS: (low: float, high: float) |
| 428 | |
| 429 | high : float or None, optional |
| 430 | The higher spine bound. Passing *None* leaves the limit unchanged. |
| 431 | """ |
| 432 | if self.spine_type == 'circle': |
| 433 | raise ValueError( |
| 434 | 'set_bounds() method incompatible with circular spines') |
| 435 | if high is None and np.iterable(low): |
| 436 | low, high = low |
| 437 | old_low, old_high = self._get_bounds_or_viewLim() |
| 438 | if low is None: |
| 439 | low = old_low |
| 440 | if high is None: |
| 441 | high = old_high |
| 442 | self._bounds = (low, high) |
| 443 | self.stale = True |
| 444 | |
| 445 | def get_bounds(self): |
| 446 | """Get the bounds of the spine.""" |