()
| 969 | |
| 970 | @mpl.style.context('mpl20') |
| 971 | def test_picking_does_not_stale(): |
| 972 | fig, ax = plt.subplots() |
| 973 | ax.scatter([0], [0], [1000], picker=True) |
| 974 | fig.canvas.draw() |
| 975 | assert not fig.stale |
| 976 | |
| 977 | mouse_event = SimpleNamespace(x=ax.bbox.x0 + ax.bbox.width / 2, |
| 978 | y=ax.bbox.y0 + ax.bbox.height / 2, |
| 979 | inaxes=ax, guiEvent=None) |
| 980 | fig.pick(mouse_event) |
| 981 | assert not fig.stale |
| 982 | |
| 983 | |
| 984 | def test_add_subplot_twotuple(): |