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)
| 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 | """ |
no test coverage detected