Return the outer bounding box of the subplot specs given by rows and cols. rows and cols can be spans.
(self, rows=0, cols=0)
| 352 | return self.margin_vals[todo][col] |
| 353 | |
| 354 | def get_outer_bbox(self, rows=0, cols=0): |
| 355 | """ |
| 356 | Return the outer bounding box of the subplot specs |
| 357 | given by rows and cols. rows and cols can be spans. |
| 358 | """ |
| 359 | rows = np.atleast_1d(rows) |
| 360 | cols = np.atleast_1d(cols) |
| 361 | |
| 362 | bbox = Bbox.from_extents( |
| 363 | self.lefts[cols[0]].value(), |
| 364 | self.bottoms[rows[-1]].value(), |
| 365 | self.rights[cols[-1]].value(), |
| 366 | self.tops[rows[0]].value()) |
| 367 | return bbox |
| 368 | |
| 369 | def get_inner_bbox(self, rows=0, cols=0): |
| 370 | """ |
no test coverage detected