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

Method get_outer_bbox

lib/matplotlib/_layoutgrid.py:354–367  ·  view source on GitHub ↗

Return the outer bounding box of the subplot specs given by rows and cols. rows and cols can be spans.

(self, rows=0, cols=0)

Source from the content-addressed store, hash-verified

352 return self.margin_vals[todo][col]
353
354 def get_outer_bbox(self, rows=0, cols=0):
355 """
356 Return the outer bounding box of the subplot specs
357 given by rows and cols. rows and cols can be spans.
358 """
359 rows = np.atleast_1d(rows)
360 cols = np.atleast_1d(cols)
361
362 bbox = Bbox.from_extents(
363 self.lefts[cols[0]].value(),
364 self.bottoms[rows[-1]].value(),
365 self.rights[cols[-1]].value(),
366 self.tops[rows[0]].value())
367 return bbox
368
369 def get_inner_bbox(self, rows=0, cols=0):
370 """

Callers 2

reposition_axesFunction · 0.80
plot_childrenFunction · 0.80

Calls 2

from_extentsMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected