Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 289a40c

Browse files
committed
Increase zoom step from 5% to 10%
1 parent 056035c commit 289a40c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2599,7 +2599,7 @@ def scroll_handler(event, canvas=None, toolbar=None):
25992599
# mouse position in scaled (e.g., log) data coordinates
26002600
x, y = ax.transScale.transform((event.xdata, event.ydata))
26012601

2602-
scale_factor = 1.0 - 0.05 * event.step
2602+
scale_factor = 1.0 - 0.1 * event.step
26032603
new_xmin = x - (x - xmin) * scale_factor
26042604
new_xmax = x + (xmax - x) * scale_factor
26052605
new_ymin = y - (y - ymin) * scale_factor

0 commit comments

Comments
 (0)