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

Method splitx

lib/matplotlib/transforms.py:562–571  ·  view source on GitHub ↗

Return a list of new `Bbox` objects formed by splitting the original one with vertical lines at fractional positions given by *args*.

(self, *args)

Source from the content-addressed store, hash-verified

560 self._points[0] + (W, H)])
561
562 def splitx(self, *args):
563 """
564 Return a list of new `Bbox` objects formed by splitting the original
565 one with vertical lines at fractional positions given by *args*.
566 """
567 xf = [0, *args, 1]
568 x0, y0, x1, y1 = self.extents
569 w = x1 - x0
570 return [Bbox([[x0 + xf0 * w, y0], [x0 + xf1 * w, y1]])
571 for xf0, xf1 in itertools.pairwise(xf)]
572
573 def splity(self, *args):
574 """

Callers 1

make_axesFunction · 0.80

Calls 1

BboxClass · 0.85

Tested by

no test coverage detected