8000 Force extra draw to excercise clear machinery · matplotlib/matplotlib@d0af10f · GitHub
[go: up one dir, main page]

Skip to content

Commit d0af10f

Browse files
ksundentacaswell
andauthored
Force extra draw to excercise clear machinery
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
1 parent 825059e commit d0af10f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_widgets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,8 @@ def test_MultiCursor(horizOn, vertOn):
16551655
# to have a single .ax attribute.
16561656
event = mock_event(ax1, xdata=.5, ydata=.25)
16571657
multi.onmove(event)
1658+
# force a draw + draw event to exercise clear
1659+
fig.canvas.draw()
16581660

16591661
# the lines in the first two ax should both move
16601662
for l in multi.vlines:

0 commit comments

Comments
 (0)
0