Closed
Description
Documentation Link
https://matplotlib.org/stable/gallery/event_handling/viewlims.html
Problem
The viewlims example is nice, but
- subclassing Rectangle to make it callable and thus usable as a xlim_changed callback seems a bit weird, probably better to use some plain function callback that closes over the rectangle object.
- accessing ax.viewLim is a bit unidiomatic, ax.get_xlim()/ax.get_ylim() seem like the normal approach.
Suggested improvement
No response