(event)
| 20 | |
| 21 | |
| 22 | def on_press(event): |
| 23 | print('press', event.key) |
| 24 | sys.stdout.flush() |
| 25 | if event.key == 'x': |
| 26 | visible = xl.get_visible() |
| 27 | xl.set_visible(not visible) |
| 28 | fig.canvas.draw() |
| 29 | |
| 30 | |
| 31 | # Fixing random state for reproducibility |
nothing calls this directly
no test coverage detected
searching dependent graphs…