MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_bounds

Method set_bounds

lib/matplotlib/spines.py:415–443  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 12

connectorsMethod · 0.45
drawMethod · 0.45
update_frameMethod · 0.45
update_frameMethod · 0.45
update_positionsMethod · 0.45
restore_bboxFunction · 0.45
adjust_bboxFunction · 0.45
convertMethod · 0.45
spines.pyFile · 0.45
update_rectFunction · 0.45

Calls 1

Tested by 1