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

Method splity

lib/matplotlib/transforms.py:573–582  ·  view source on GitHub ↗

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

(self, *args)

Source from the content-addressed store, hash-verified

571 for xf0, xf1 in itertools.pairwise(xf)]
572
573 def splity(self, *args):
574 """
575 Return a list of new `Bbox` objects formed by splitting the original
576 one with horizontal lines at fractional positions given by *args*.
577 """
578 yf = [0, *args, 1]
579 x0, y0, x1, y1 = self.extents
580 h = y1 - y0
581 return [Bbox([[x0, y0 + yf0 * h], [x1, y0 + yf1 * h]])
582 for yf0, yf1 in itertools.pairwise(yf)]
583
584 def count_contains(self, vertices):
585 """

Callers 1

make_axesFunction · 0.80

Calls 1

BboxClass · 0.85

Tested by

no test coverage detected