@@ -540,18 +540,7 @@ def test_interactive_pan_zoom_events(tool, button, patch_vis, forward_nav, t_s):
540
540
ylim_b = init_ylim
541
541
542
542
tb .zoom ()
543
- tb .press_zoom (start_event )
544
- tb .drag_zoom (drag_event )
545
- tb .release_zoom (stop_event )
546
-
547
- assert ax_t .get_xlim () == pytest .approx (xlim_t , abs = 0.15 )
548
- assert ax_t .get_ylim () == pytest .approx (ylim_t , abs = 0.15 )
549
- assert ax_b .get_xlim () == pytest .approx (xlim_b , abs = 0.15 )
550
- assert ax_b .get_ylim () == pytest .approx (ylim_b , abs = 0.15 )
551
543
552
- # Check if twin-axes are properly triggered
553
- assert ax_t .get_xlim () == pytest .approx (ax_t_twin .get_xlim (), abs = 0.15 )
554
- assert ax_b .get_xlim () == pytest .approx (ax_b_twin .get_xlim (), abs = 0.15 )
555
544
else :
556
545
# Evaluate expected limits
557
546
# (call start_pan to make sure ax._pan_start is set)
@@ -576,15 +565,16 @@ def test_interactive_pan_zoom_events(tool, button, patch_vis, forward_nav, t_s):
576
565
ylim_b = init_ylim
577
566
578
567
tb .pan ()
579
- tb .press_pan (start_event )
580
- tb .drag_pan (drag_event )
581
- tb .release_pan (stop_event )
582
568
583
- assert ax_t .get_xlim () == pytest .approx (xlim_t , abs = 0.15 )
584
- assert ax_t .get_ylim () == pytest .approx (ylim_t , abs = 0.15 )
585
- assert ax_b .get_xlim () == pytest .approx (xlim_b , abs = 0.15 )
586
- assert ax_b .get_ylim () == pytest .approx (ylim_b , abs = 0.15 )
569
+ start_event ._process ()
570
+ drag_event ._process ()
571
+ stop_event ._process ()
572
+
573
+ assert ax_t .get_xlim () == pytest .approx (xlim_t , abs = 0.15 )
574
+ assert ax_t .get_ylim () == pytest .approx (ylim_t , abs = 0.15 )
575
+ assert ax_b .get_xlim () == pytest .approx (xlim_b , abs = 0.15 )
576
+ assert ax_b .get_ylim () == pytest .approx (ylim_b , abs = 0.15 )
587
577
588
- # Check if twin-axes are properly triggered
589
- assert ax_t .get_xlim () == pytest .approx (ax_t_twin .get_xlim (), abs = 0.15 )
590
- assert ax_b .get_xlim () == pytest .approx (ax_b_twin .get_xlim (), abs = 0.15 )
578
+ # Check if twin-axes are properly triggered
579
+ assert ax_t .get_xlim () == pytest .approx (ax_t_twin .get_xlim (), abs = 0.15 )
580
+ assert ax_b .get_xlim () == pytest .approx (ax_b_twin .get_xlim (), abs = 0.15 )
0 commit comments