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.

FigureCanvasto the widget which based on your screenshot should be accessible within yourQMainWindowclass asself.matplotlibwidget. Then you can callself.matplotlibwidget.addWidget(self.figure_canvas)- Suevermatplotlibwidget object has no attribute addwidget. - Pablo Floresself.matplotlibwidget.axes.plot(x,y)- Suever