code: def clear(self):
          
          for ax in self.fig.get_axes():
              ax.cla()
          self.conf.ntrace = 0
          self.conf.xlabel = ''
          self.conf.ylabel = ''
          self.conf.y2label = ''
          self.conf.title  = ''
          self.conf.data_save = {}
docs: clear plot