Closed ruixunbao closed 1 year ago
Hi @ruixunbao i take it you got it wroking?
The critical part is to assign it to a long lived variable like so: self._ph = panhandler(fig)
Also
I'm trying to slowly transition the panhandler usage over to a dedicated zooming and panning package mpl-pan-zoom
(docs here: https://mpl-pan-zoom.readthedocs.io/en/latest/) which I'd reocmmend switching too as I plan to deprecate the usage from mpl-interactions
Hi @ruixunbao i take it you got it wroking?
The critical part is to assign it to a long lived variable like so:
self._ph = panhandler(fig)
Also
I'm trying to slowly transition the panhandler usage over to a dedicated zooming and panning package
mpl-pan-zoom
(docs here: https://mpl-pan-zoom.readthedocs.io/en/latest/) which I'd reocmmend switching too as I plan to deprecate the usage from mpl-interactions
Thanks! @ianhi. I found the solution in [https://github.com/mpl-extensions/mpl-interactions/issues/228#issuecomment-1003829856] #228 . I've switched to package mpl-pan-zoom
. I really appreciate the work you've done.
Bug report
Bug summary
When a plot embedded in pyqt5, panhandler does not work anymore while zoom_factory still works.
Code for reproduction
Version Info
print(matplotlib.get_backend())
): Qt5Agg