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

Method expanded

lib/matplotlib/transforms.py:611–621  ·  view source on GitHub ↗

Construct a `Bbox` by expanding this one around its center by the factors *sw* and *sh*.

(self, sw, sh)

Source from the content-addressed store, hash-verified

609 self, np.atleast_3d([np.array(x) for x in bboxes]))
610
611 def expanded(self, sw, sh):
612 """
613 Construct a `Bbox` by expanding this one around its center by the
614 factors *sw* and *sh*.
615 """
616 width = self.width
617 height = self.height
618 deltaw = (sw * width - width) / 2.0
619 deltah = (sh * height - height) / 2.0
620 a = np.array([[-deltaw, -deltah], [deltaw, deltah]])
621 return Bbox(self._points + a)
622
623 def padded(self, w_pad, h_pad=None):
624 """

Callers 4

adjust_axes_limMethod · 0.80
get_grid_infoMethod · 0.80

Calls 1

BboxClass · 0.85

Tested by

no test coverage detected