heat_transfer_plot_temperature.py
def plot(self, x_values=None, y_values=None,
             x_experiment_values=None, y_experiment_values=None) -> None:
        """
        Plotting the inputted values of temperature progress
        """

        # TODO: make the plot at the beginning to say something, like "Press RUN"
        self.temperature_subplot.cla()
        self.temperature_subplot.set_title('Temperature plot')
        self.temperature_subplot.set_xlabel("Time [s]")
        self.temperature_subplot.set_ylabel("Temperature [°C]")

        # In both cases of plotting we have to make sure we plot the
        #   data with the same dimensions, therefore we first determine
        #   she shortest array and plot just that data

        if x_values is not None and y_values is not None:
            min_length = min(len(x_values), len(y_values))
            self.temperature_subplot.plot(x_values[:min_length],
                                          y_values[:min_length],
                                          label='Calculated Data',
                                          color="blue")

        if x_experiment_values is not None and y_experiment_values is not None:
            min_length = min(len(x_experiment_values), len(y_experiment_values))
            self.temperature_subplot.plot(x_experiment_values[:min_length],
                                          y_experiment_values[:min_length],
                                          label='Experiment Data',
                                          color="orange")

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

        Plotting the inputted values of temperature progress
        
Plotting the inputted values of temperature progress
Plotting the inputted values of temperature progress
def plot(self, x_values=None, y_values=None,
             x_experiment_values=None, y_experiment_values=None) -> None:
        self.temperature_subplot.cla()
        self.temperature_subplot.set_title('Temperature plot')
        self.temperature_subplot.set_xlabel("Time [s]")
        self.temperature_subplot.set_ylabel("Temperature [°C]")
        if x_values is not None and y_values is not None:
            min_length = min(len(x_values), len(y_values))
            self.temperature_subplot.plot(x_values[:min_length],
                                          y_values[:min_length],
                                          label='Calculated Data',
                                          color="blue")
        if x_experiment_values is not None and y_experiment_values is not None:
            min_length = min(len(x_experiment_values), len(y_experiment_values))
            self.temperature_subplot.plot(x_experiment_values[:min_length],
                                          y_experiment_values[:min_length],
                                          label='Experiment Data',
                                          color="orange")
        self.temperature_subplot.legend()
        self.draw()
def plot ( self , x_values = None , y_values = None , x_experiment_values = None , y_experiment_values = None ) -> None : self . temperature_subplot . cla ( ) self . temperature_subplot . set_title ( 'Temperature plot' ) self . temperature_subplot . set_xlabel ( "Time [s]" ) self . temperature_subplot . set_ylabel ( "Temperature [°C]") if x_values is not None and y_values is not None : min_length = min ( len ( x_values ) , len ( y_values ) ) self . temperature_subplot . plot ( x_values [ : min_length ] , y_values [ : min_length ] , label = 'Calculated Data' , color = "blue" ) if x_experiment_values is not None and y_experiment_values is not None : min_length = min ( len ( x_experiment_values ) , len ( y_experiment_values ) ) self . temperature_subplot . plot ( x_experiment_values [ : min_length ] , y_experiment_values [ : min_length ] , label = 'Experiment Data' , color = "orange" ) self . temperature_subplot . legend ( ) self . draw ( )
Plotting the inputted values of temperature progress
Plotting the inputted values of temperature progress
"""
        Plotting the inputted values of temperature progress
        """ # TODO: make the plot at the beginning to say something, like "Press RUN" # In both cases of plotting we have to make sure we plot the #   data with the same dimensions, therefore we first determine #   she shortest array and plot just that data
self
x_values
y_values
x_experiment_values
y_experiment_values