matplotlib / matplotlib/ipympl

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

Open
#561 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/3b3469d1-0c66-43f2-85f3-104719b0006e)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the zoom-button behavior in a notebook and compare it with the MATLAB figure controls described in the issue. Trace the ipympl zoom interaction to determine how horizontal versus vertical mouse movement is handled; done means a strictly horizontal or vertical drag zooms only that axis without affecting the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.