Older stuff/Tests_alias_TKinter_gui.py
def refresh_graph_with_new_values(self, x_values, y_values, x_experiment_values=None, y_experiment_values=None):
        """
        Updates the graph after new values have been calculated.
        TODO: research how the graph could be appended, and not replotted
            from the scratch (which would increase efficiency).
        """
        self.temperature_subplot.cla()

        self.temperature_subplot.set_title("1D Heat Transfer - {}".format(self.chosen_material))
        self.temperature_subplot.set_xlabel("Time [s]")
        self.temperature_subplot.set_ylabel("Temperature [°C]")

        self.temperature_subplot.plot(x_values, y_values, label='Calculated Data')
        if x_experiment_values is not None and y_experiment_values is not None:
            self.temperature_subplot.plot(x_experiment_values, y_experiment_values, label='Experiment Data')

        self.temperature_subplot.legend()
        self.canvas.draw()

        Updates the graph after new values have been calculated.
        TODO: research how the graph could be appended, and not replotted
            from the scratch (which would increase efficiency).
        
Updates the graph after new values have been calculated.
TODO: research how the graph could be appended, and not replotted
from the scratch (which would increase efficiency).
Updates the graph after new values have been calculated . TODO : research how the graph could be appended and not replotted from the scratch ( which would increase efficiency ) .
def refresh_graph_with_new_values(self, x_values, y_values, x_experiment_values=None, y_experiment_values=None):
        self.temperature_subplot.cla()
        self.temperature_subplot.set_title("1D Heat Transfer - {}".format(self.chosen_material))
        self.temperature_subplot.set_xlabel("Time [s]")
        self.temperature_subplot.set_ylabel("Temperature [°C]")
        self.temperature_subplot.plot(x_values, y_values, label='Calculated Data')
        if x_experiment_values is not None and y_experiment_values is not None:
            self.temperature_subplot.plot(x_experiment_values, y_experiment_values, label='Experiment Data')
        self.temperature_subplot.legend()
        self.canvas.draw()
def refresh_graph_with_new_values ( self , x_values , y_values , x_experiment_values = None , y_experiment_values = None ) : self . temperature_subplot . cla ( ) self . temperature_subplot . set_title ( "1D Heat Transfer - {}" . format ( self . chosen_material ) ) self . temperature_subplot . set_xlabel ( "Time [s]" ) self . temperature_subplot . set_ylabel ( "Temperature [°C]") self . temperature_subplot . plot ( x_values , y_values , label = 'Calculated Data' ) if x_experiment_values is not None and y_experiment_values is not None : self . temperature_subplot . plot ( x_experiment_values , y_experiment_values , label = 'Experiment Data' ) self . temperature_subplot . legend ( ) self . canvas . draw ( )
Updates the graph after new values have been calculated.
Updates the graph after new values have been calculated .
"""
        Updates the graph after new values have been calculated.
        TODO: research how the graph could be appended, and not replotted
            from the scratch (which would increase efficiency).
        """
self
x_values
y_values
x_experiment_values
y_experiment_values