code: def reset(self):
          'clear everything in preparation for a fresh reload()'
          self.polylines.clear()
          self.legends.clear()
          self.plotAttrs.clear()
          self.unusedAttrs = list(colors[colorname.translate(str.maketrans('_', ' '))].attr for colorname in options.plot_colors.split()f reset(self):
          'clear everything in preparation for a fresh reload()'
          self.polylines.clear()
          self.legends.clear()
          self.plotAttrs.clear()
          self.unusedAttrs = list(colors[colorname.translate(str.maketrans('_', ' '))].attr for colorname in options.plot_colors.split())
docs: clear everything in preparation for a fresh reload()