MatplotlibWidget#

class pyqtgraph.widgets.MatplotlibWidget.MatplotlibWidget(
*args,
**kwargs,
)[source]#

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]#
Overloads:
  • self, figsize, dpi, parent

  • self, parent, figsize, dpi