code: def __init__(self):
      super().__init__()
      self._main = QtWidgets.QWidget()
      self.setCentralWidget(self._main)
      layout = QtWidgets.QVBoxLayout(self._main)
  
      static_canvas = FigureCanvas(Figure(figsize=(5, 3)))
      # Ideally one would use self.addToolBar here, but it is slightly
      # incompatible between PyQt6 and other bindings, so we just add the
      # toolbar as a plain widget instead.
      layout.addWidget(NavigationToolbar(static_canvas, self))
      layout.addWidget(static_canvas)
  
      dynamic_canvas = FigureCanvas(Figure(figsize=(5, 3)))
      layout.addWidget(dynamic_canvas)
      layout.addWidget(NavigationToolbar(dynamic_canvas, self))
  
      self._static_ax = static_canvas.figure.subplots()
      t = np.linspace(0, 10, 501)
      self._static_ax.plot(t, np.tan(t), ".")
  
      self._dynamic_ax = dynamic_canvas.figure.subplots()
      t = np.linspace(0, 10, 101)
      # Set up a Line2D.
      (self._line,) = self._dynamic_ax.plot(t, np.sin(t + time.time()))
      self._timer = dynamic_canvas.new_timer(50)
      self._timer.add_callback(self._update_canvas)
      self._timer.start()
  
file_path: matplotlib/galleries/examples/user_interfaces/embedding_in_qt_sgskip.py
imports: import sys
  import time
  import numpy
  from matplotlib.backends.backend_qtagg import FigureCanvas
  from matplotlib.backends.backend_qtagg import NavigationToolbar2QT
  from matplotlib.backends.qt_compat import QtWidgets
  from matplotlib.figure import Figure
label_desc: Use image node_id 1 to create a new ApplicationWindow object from inherited base classes: QtWidgets with example: obj = ApplicationWindow()