I was designing my GUI with QtDesigner and PyQt4. First in QtDesigner I added a matplotlib widget to my GUI. Then in the code I want to add multiple embedded figures to be displayed in parallel.
I checked the given code of the MatplotlibWidget class that comes with PyQt4. It uses the following code to create Figure.
self.figure = Figure(figsize=(width, height), dpi=dpi)
Canvas.__init__(self, self.figure)
But when I check how to add more figures, most of the solution online is using the
pyplot.figure()
But this is not suitable for my case, since it creates standalone dialog. I want the new figure to be embedded in my current GUI.
Any one knows how to add new figures without using the pyplot?