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

Method get_left_margin_bbox

lib/matplotlib/_layoutgrid.py:413–429  ·  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

411 return bbox
412
413 def get_left_margin_bbox(self, rows=0, cols=0):
414 """
415 Return the left margin bounding box of the subplot specs
416 given by rows and cols. rows and cols can be spans.
417 """
418 rows = np.atleast_1d(rows)
419 cols = np.atleast_1d(cols)
420
421 bbox = Bbox.from_extents(
422 (self.lefts[cols[0]].value() +
423 self.margins['leftcb'][cols[0]].value()),
424 (self.bottoms[rows[-1]].value()),
425 (self.lefts[cols[0]].value() +
426 self.margins['leftcb'][cols[0]].value() +
427 self.margins['left'][cols[0]].value()),
428 (self.tops[rows[0]].value()))
429 return bbox
430
431 def get_bottom_margin_bbox(self, rows=0, cols=0):
432 """

Callers 1

plot_childrenFunction · 0.80

Calls 2

from_extentsMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected