Skip to content Skip to sidebar Skip to footer

Multiple Embedded Matplotlib Canvases In Pyqt Change Size On Mouse Over

I'm trying to embed multiple matplotlib plots in a multi-column layout in a PyQt GUI. At first sight I succeed in setting up the layout as wanted but when moving the mouse over any

Solution 1:

I had a similar issue and I solved it by:

toolbar1.setMinimumWidth(canvas1.width())
toolbar2.setMinimumWidth(canvas2.width())
toolbar3.setMinimumWidth(canvas3.width())
toolbar4.setMinimumWidth(canvas4.width())

The problem is when the toolbar becomes wider than the canvas.

Post a Comment for "Multiple Embedded Matplotlib Canvases In Pyqt Change Size On Mouse Over"