I have a Matplotlib canvas (FigureCanvasWxAgg), which I show inside wx.ScrolledWindow. The problem is that I would like to have the default zoom and pan functions of Matplotlib in combination with ScrolledWindow, so when the user zooms in on the canvas, ScrolledWindow needs to become larger in order to adapt to scaling (scrollbars become smaller). Similarly, for panning, I would like the matplotlib default panning tool to work with our ScrolledWindow, so that when the user clicks on the canvas, the ScrolledWindow scrollbars should move accordingly.
I searched for a while and did not see anyone even mentioning, if possible. Can someone point me in the right direction?
Thanks for the help / advice.
source share