MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / trigger

Method trigger

site-packages/matplotlib/backend_tools.py:442–453  ·  view source on GitHub ↗
(self, sender, event, data=None)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

_get_next_grid_statesMethod · 0.45
gridMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected