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

Method shrunk

lib/matplotlib/transforms.py:527–536  ·  view source on GitHub ↗

Return a copy of the `Bbox`, shrunk by the factor *mx* in the *x* direction and the factor *my* in the *y* direction. The lower left corner of the box remains unchanged. Normally *mx* and *my* will be less than 1, but this is not enforced.

(self, mx, my)

Source from the content-addressed store, hash-verified

525 (b + cy * (h - H)) - B])
526
527 def shrunk(self, mx, my):
528 """
529 Return a copy of the `Bbox`, shrunk by the factor *mx*
530 in the *x* direction and the factor *my* in the *y* direction.
531 The lower left corner of the box remains unchanged. Normally
532 *mx* and *my* will be less than 1, but this is not enforced.
533 """
534 w, h = self.size
535 return Bbox([self._points[0],
536 self._points[0] + [mx * w, my * h]])
537
538 def shrunk_to_aspect(self, box_aspect, container=None, fig_aspect=1.0):
539 """

Callers 3

reposition_colorbarFunction · 0.80
__call__Method · 0.80
make_axesFunction · 0.80

Calls 1

BboxClass · 0.85

Tested by

no test coverage detected