I created in QtDesigner this QDialog:
I would like to know how can I draw something in this Matplotlib widget that I put there. I mean, if I write some code to create a matplotlib figure without Qt Designer, I can write something like:
self.figure_canvas = FigureCanvas(Figure())
self.axes = self.figure_canvas.figure.add_subplot(111)
x = np.arange(0,5,0.5)
y = np.sin(x)
and then draw doing:
ax.plot(x,y)
or self.axes.plot(x,y)
How can I access to this widget to draw something? Hope you can help me.