Skip to main content
`Ctrl`+`K`

# MatplotlibWidget

class pyqtgraph.widgets.MatplotlibWidget.MatplotlibWidget(figsize=(5.0, 4.0), dpi=100, parent=None)
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)