(self, sender, event, data=None)
| 440 | _cycle = [(False, False), (True, False), (True, True), (False, True)] |
| 441 | |
| 442 | def trigger(self, sender, event, data=None): |
| 443 | ax = event.inaxes |
| 444 | if ax is None: |
| 445 | return |
| 446 | try: |
| 447 | x_state, x_which, y_state, y_which = self._get_next_grid_states(ax) |
| 448 | except ValueError: |
| 449 | pass |
| 450 | else: |
| 451 | ax.grid(x_state, which=x_which, axis="x") |
| 452 | ax.grid(y_state, which=y_which, axis="y") |
| 453 | ax.figure.canvas.draw_idle() |
| 454 | |
| 455 | @staticmethod |
| 456 | def _get_uniform_grid_state(ticks): |
nothing calls this directly
no test coverage detected