(ticks)
| 2538 | |
| 2539 | # these bindings require the mouse to be over an Axes to trigger |
| 2540 | def _get_uniform_gridstate(ticks): |
| 2541 | # Return True/False if all grid lines are on or off, None if they are |
| 2542 | # not all in the same state. |
| 2543 | return (True if all(tick.gridline.get_visible() for tick in ticks) else |
| 2544 | False if not any(tick.gridline.get_visible() for tick in ticks) else |
| 2545 | None) |
| 2546 | |
| 2547 | ax = event.inaxes |
| 2548 | # toggle major grids in current Axes (default key 'g') |
no test coverage detected
searching dependent graphs…