Calls the plot function of the script, and redraws both plots
        Args:
            script: script to be plotted

def plot_script(self, script):
        """
        Calls the plot function of the script, and redraws both plots
        Args:
            script: script to be plotted
        """

        script.plot([self.matplotlibwidget_1.figure, self.matplotlibwidget_2.figure])
        self.matplotlibwidget_1.draw()
        self.matplotlibwidget_2.draw()