matplotlib / ipympl

Matplotlib Jupyter Integration
https://matplotlib.org/ipympl/
BSD 3-Clause "New" or "Revised" License
1.59k stars 225 forks source link

MATLAB-like Vertical/Horizontal Zoom for strictly Vertical/Horizontal Drag #561

Open zjwilliams20 opened 4 months ago

zjwilliams20 commented 4 months ago

In the MATLAB figure controls, the zoom button allows me to only zoom horizontally if the mouse is moved horizontally or vertically. This is nice to have so that I don't have to drag across the vertical/horizontal extent every time I want to go to a specific spot.

I'd greatly appreciate this feature here as I use this extension for virtually all of my notebook development and find myself wanting to do this frequently. Thanks!

image

ianhi commented 3 months ago

Hi @zjwilliams20 those controls come from the matplotlib package directly, and are not somethign that really can/should be implemented in ipympl.

Can someone with the rights to transfer do so (e.g. @tacaswell ?)