class_docstr: 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()
code: def getFigure(self):
      return self.fig
  
file_path: pyqtgraph/pyqtgraph/widgets/MatplotlibWidget.py
imports: from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg
  from matplotlib.backends.backend_qtagg import NavigationToolbar2QT
  from matplotlib.figure import Figure
  from ..Qt import QtWidgets
  import typing
label_desc: Use image node_id 4 for calling the MatplotlibWidget obj's underlying member method code with example usage: obj.getFigure() and returns: self