Bug summary
mpl with py3.10.1 - Interactive figures - Constrain pan/zoom to x/y axis not work
Code for reproduction
Simple Plot
https://matplotlib.org/stable/gallery/lines_bars_and_markers/simple_plot.html
Actual outcome
Interactive figures - Constrain pan/zoom to x/y axis not work
Despite the key being pressed, both axes change
Expected outcome
i expect the functionality:
Navigation keyboard shortcuts
https://matplotlib.org/stable/users/explain/interactive.html
Constrain pan/zoom to x axis - hold x when panning/zooming with mouse
Constrain pan/zoom to y axis - hold y when panning/zooming with mouse
Additional information
I've tested a few versions:
py 3.8 + mpl 3.4.1 and 3.5.1 o.k.
py 3.9 + mpl 3.4.1 and 3.5.1 o.k.
but:
py 3.10.1 + mpl 3.4.1 and 3.5.1 --> Constrain pan/zoom only to x or y axis NOT WORK !
What is the reason?
Thank you
Operating system
Win 10
Matplotlib Version
different 3.4.1 ... 3.5.1
Matplotlib Backend
TkAgg
Python version
Python 3.10.1
Jupyter version
No response
Installation
pip
Bug summary
mpl with py3.10.1 - Interactive figures - Constrain pan/zoom to x/y axis not work
Code for reproduction
Actual outcome
Interactive figures - Constrain pan/zoom to x/y axis not work
Despite the key being pressed, both axes change
Expected outcome
i expect the functionality:
Navigation keyboard shortcuts
https://matplotlib.org/stable/users/explain/interactive.html
Constrain pan/zoom to x axis - hold x when panning/zooming with mouse
Constrain pan/zoom to y axis - hold y when panning/zooming with mouse
Additional information
I've tested a few versions:
py 3.8 + mpl 3.4.1 and 3.5.1 o.k.
py 3.9 + mpl 3.4.1 and 3.5.1 o.k.
but:
py 3.10.1 + mpl 3.4.1 and 3.5.1 --> Constrain pan/zoom only to x or y axis NOT WORK !
What is the reason?
Thank you
Operating system
Win 10
Matplotlib Version
different 3.4.1 ... 3.5.1
Matplotlib Backend
TkAgg
Python version
Python 3.10.1
Jupyter version
No response
Installation
pip