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

Method get_bottom_margin_bbox

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

429 return bbox
430
431 def get_bottom_margin_bbox(self, rows=0, cols=0):
432 """
433 Return the left margin bounding box of the subplot specs
434 given by rows and cols. rows and cols can be spans.
435 """
436 rows = np.atleast_1d(rows)
437 cols = np.atleast_1d(cols)
438
439 bbox = Bbox.from_extents(
440 (self.lefts[cols[0]].value()),
441 (self.bottoms[rows[-1]].value() +
442 self.margins['bottomcb'][rows[-1]].value()),
443 (self.rights[cols[-1]].value()),
444 (self.bottoms[rows[-1]].value() +
445 self.margins['bottom'][rows[-1]].value() +
446 self.margins['bottomcb'][rows[-1]].value()
447 ))
448 return bbox
449
450 def get_right_margin_bbox(self, rows=0, cols=0):
451 """

Callers 1

plot_childrenFunction · 0.80

Calls 2

from_extentsMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected