code: def plot_script_validate(self, script):
          
  
          script.plot_validate([self.matplotlibwidget_1.figure, self.matplotlibwidget_2.figure])
          self.matplotlibwidget_1.draw()
          self.matplotlibwidget_2.draw()
docs: checks the plottype of the script and plots it accordingly
          Args:
              script: script to be plotted