code: def plot_data(self):
          
          # Clear the plot before plotting onto it
          self.ax.cla()
  
          if self.sample is None:
              return
  
          if self.current_channels is None:
              self.current_channels = self.sample.channel_names[:2]
  
          channels = self.current_channels
          channels_to_plot = channels[0] if len(channels) == 1 else channels
          self.sample.plot(channels_to_plot, ax=self.ax)
  
          xaxis = self.ax.get_xaxis()
          yaxis = self.ax.get_yaxis()
          self.xlabel_artist = xaxis.get_label()
          self.ylabel_artist = yaxis.get_label()
          self.xlabel_artist.set_picker(5)
          self.ylabel_artist.set_picker(5)
  
          self.fig.canvas.draw()
docs: Plots the loaded data