@@ -2593,8 +2593,8 @@ def scroll_handler(event, canvas=None, toolbar=None):
2593
2593
2594
2594
xmin , xmax = ax .get_xlim ()
2595
2595
ymin , ymax = ax .get_ylim ()
2596
- xmin , ymin = ax .transScale .transform (( xmin , ymin ))
2597
- xmax , ymax = ax . transScale . transform ( (xmax , ymax ))
2596
+ ( xmin , ymin ), ( xmax , ymax ) = ax .transScale .transform (
2597
+ [( xmin , ymin ), (xmax , ymax )] )
2598
2598
2599
2599
# mouse position in scaled (e.g., log) data coordinates
2600
2600
x , y = ax .transScale .transform ((event .xdata , event .ydata ))
@@ -2606,8 +2606,8 @@ def scroll_handler(event, canvas=None, toolbar=None):
2606
2606
new_ymax = y + (ymax - y ) * scale_factor
2607
2607
2608
2608
inv_scale = ax .transScale .inverted ()
2609
- new_xmin , new_ymin = inv_scale .transform (( new_xmin , new_ymin ))
2610
- new_xmax , new_ymax = inv_scale . transform ( (new_xmax , new_ymax ))
2609
+ ( new_xmin , new_ymin ), ( new_xmax , new_ymax ) = inv_scale .transform (
2610
+ [( new_xmin , new_ymin ), (new_xmax , new_ymax )] )
2611
2611
2612
2612
ax .set_xlim (new_xmin , new_xmax )
2613
2613
ax .set_ylim (new_ymin , new_ymax )
0 commit comments