code: def _update_canvas(self):
      t = np.linspace(0, 10, 101)
      # Shift the sinusoid as a function of time.
      self._line.set_data(t, np.sin(t + time.time()))
      self._line.figure.canvas.draw()
  
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 2 for calling the ApplicationWindow obj's underlying member method code with example usage: obj._update_canvas() without return types