Skip to content

Commit c830dd8

Browse files
timhoffmQuLogic
andauthored
Apply suggestions from code review
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent e339521 commit c830dd8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Scroll-to-zoom in GUIs
22
~~~~~~~~~~~~~~~~~~~~~~
33

4-
When a plot manipulation tool (pan or zoom tool) in plot windows is selected,
5-
a mouse scroll operation results in a zoom towards the mouse pointer, keeping the
4+
When a plot manipulation tool (pan or zoom tool) in plot windows is enabled,
5+
a mouse scroll operation results in a zoom focussing on the mouse pointer, keeping the
66
aspect ratio of the axes.
77

88
There is no effect if no manipulation tool is selected. This is intentional to
9-
keep a state in which accidental manipulation of the plot is excluded.
9+
keep a state in which accidental manipulation of the plot is avoided.

lib/matplotlib/backend_bases.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ def button_press_handler(
409409
) -> None: ...
410410
def scroll_handler(
411411
event: MouseEvent,
412-
canvas: FigureCanvasBase | None = ...,
413-
toolbar: NavigationToolbar2 | None = ...,
412+
canvas: FigureCanvasBase | None = ...,
413+
toolbar: NavigationToolbar2 | None = ...,
414414
) -> None: ...
415415

416416
class NonGuiException(Exception): ...

0 commit comments

Comments
 (0)