(self, axes)
| 278 | super().__init__() |
| 279 | |
| 280 | def update_lim(self, axes): |
| 281 | x1, x2 = axes.get_xlim() |
| 282 | y1, y2 = axes.get_ylim() |
| 283 | if self._old_limits != (x1, x2, y1, y2): |
| 284 | self._update_grid(Bbox.from_extents(x1, y1, x2, y2)) |
| 285 | self._old_limits = (x1, x2, y1, y2) |
| 286 | |
| 287 | def _update_grid(self, bbox): |
| 288 | """Cache relevant computations when the axes limits have changed.""" |
no test coverage detected