MCPcopy
hub / github.com/matplotlib/matplotlib / union

Method union

lib/matplotlib/transforms.py:666–674  ·  view source on GitHub ↗

Return a `Bbox` that contains all of the given *bboxes*.

(bboxes)

Source from the content-addressed store, hash-verified

664
665 @staticmethod
666 def union(bboxes):
667 """Return a `Bbox` that contains all of the given *bboxes*."""
668 if not len(bboxes):
669 raise ValueError("'bboxes' cannot be empty")
670 x0 = np.min([bbox.xmin for bbox in bboxes])
671 x1 = np.max([bbox.xmax for bbox in bboxes])
672 y0 = np.min([bbox.ymin for bbox in bboxes])
673 y1 = np.max([bbox.ymax for bbox in bboxes])
674 return Bbox([[x0, y0], [x1, y1]])
675
676 @staticmethod
677 def intersection(bbox1, bbox2):

Callers 15

get_tightbboxMethod · 0.80
get_tightbboxMethod · 0.80
get_tightbboxMethod · 0.80
get_tightbboxMethod · 0.80
get_window_extentMethod · 0.80
composite_imagesFunction · 0.80
get_window_extentMethod · 0.80
get_tightbboxMethod · 0.80
make_axesFunction · 0.80

Calls 3

BboxClass · 0.85
minMethod · 0.80
maxMethod · 0.80