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

Method get_top_margin_bbox

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

466 return bbox
467
468 def get_top_margin_bbox(self, rows=0, cols=0):
469 """
470 Return the left margin bounding box of the subplot specs
471 given by rows and cols. rows and cols can be spans.
472 """
473 rows = np.atleast_1d(rows)
474 cols = np.atleast_1d(cols)
475
476 bbox = Bbox.from_extents(
477 (self.lefts[cols[0]].value()),
478 (self.tops[rows[0]].value() -
479 self.margins['topcb'][rows[0]].value()),
480 (self.rights[cols[-1]].value()),
481 (self.tops[rows[0]].value() -
482 self.margins['topcb'][rows[0]].value() -
483 self.margins['top'][rows[0]].value()))
484 return bbox
485
486 def update_variables(self):
487 """

Callers 1

plot_childrenFunction · 0.80

Calls 2

from_extentsMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected