MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _get_uniform_gridstate

Function _get_uniform_gridstate

lib/matplotlib/backend_bases.py:2540–2545  ·  view source on GitHub ↗
(ticks)

Source from the content-addressed store, hash-verified

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')

Callers 1

key_press_handlerFunction · 0.85

Calls 1

get_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…