MatplotlibWidget#

class pyqtgraph.widgets.MatplotlibWidget.MatplotlibWidget(
figsize=(5.0, 4.0),
dpi=100,
parent=None,
)[source]#
class pyqtgraph.widgets.MatplotlibWidget.MatplotlibWidget(
parent=None,
figsize=(5.0, 4.0),
dpi=100,
)

Implements a Matplotlib figure inside a QWidget. Use getFigure() and redraw() to interact with matplotlib.

Example:

mw = MatplotlibWidget()
subplot = mw.getFigure().add_subplot(111)
subplot.plot(x,y)
mw.draw()
__init__(
*args,
**kwargs,
)[source]#