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

Method get_right_margin_bbox

lib/matplotlib/_layoutgrid.py:450–466  ·  view source on GitHub ↗

Return the left margin 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

448 return bbox
449
450 def get_right_margin_bbox(self, rows=0, cols=0):
451 """
452 Return the left margin bounding box of the subplot specs
453 given by rows and cols. rows and cols can be spans.
454 """
455 rows = np.atleast_1d(rows)
456 cols = np.atleast_1d(cols)
457
458 bbox = Bbox.from_extents(
459 (self.rights[cols[-1]].value() -
460 self.margins['right'][cols[-1]].value() -
461 self.margins['rightcb'][cols[-1]].value()),
462 (self.bottoms[rows[-1]].value()),
463 (self.rights[cols[-1]].value() -
464 self.margins['rightcb'][cols[-1]].value()),
465 (self.tops[rows[0]].value()))
466 return bbox
467
468 def get_top_margin_bbox(self, rows=0, cols=0):
469 """

Callers 1

plot_childrenFunction · 0.80

Calls 2

from_extentsMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected