Get a bbox, in axes coordinates for the cells. Only include those in the range (0, 0) to (maxRow, maxCol).
(self, renderer)
| 423 | self.stale = False |
| 424 | |
| 425 | def _get_grid_bbox(self, renderer): |
| 426 | """ |
| 427 | Get a bbox, in axes coordinates for the cells. |
| 428 | |
| 429 | Only include those in the range (0, 0) to (maxRow, maxCol). |
| 430 | """ |
| 431 | boxes = [cell.get_window_extent(renderer) |
| 432 | for (row, col), cell in self._cells.items() |
| 433 | if row >= 0 and col >= 0] |
| 434 | bbox = Bbox.union(boxes) |
| 435 | return bbox.transformed(self.get_transform().inverted()) |
| 436 | |
| 437 | def contains(self, mouseevent): |
| 438 | # docstring inherited |
no test coverage detected