Older stuff/Tests_alias_TKinter_gui.py
def initialize_temperature_graph(self, container):
        """
        Renders graph into the window and gives it a template look.
        """
        self.temperature_figure = Figure(figsize=(5,5), dpi=100)
        self.temperature_subplot = self.temperature_figure.add_subplot(111)
        self.temperature_subplot.set_title("1D Heat Transfer")
        self.temperature_subplot.set_xlabel("Time [s]")
        self.temperature_subplot.set_ylabel("Temperature [°C]")
        self.temperature_subplot.plot([], [])

        self.canvas = FigureCanvasTkAgg(self.temperature_figure, container)
        self.canvas.draw()
        self.canvas.get_tk_widget().pack(side=tk.BOTTOM, fill=tk.BOTH, expand=True)

        Renders graph into the window and gives it a template look.
        
Renders graph into the window and gives it a template look.
Renders graph into the window and gives it a template look .
def initialize_temperature_graph(self, container):
        self.temperature_figure = Figure(figsize=(5,5), dpi=100)
        self.temperature_subplot = self.temperature_figure.add_subplot(111)
        self.temperature_subplot.set_title("1D Heat Transfer")
        self.temperature_subplot.set_xlabel("Time [s]")
        self.temperature_subplot.set_ylabel("Temperature [°C]")
        self.temperature_subplot.plot([], [])
        self.canvas = FigureCanvasTkAgg(self.temperature_figure, container)
        self.canvas.draw()
        self.canvas.get_tk_widget().pack(side=tk.BOTTOM, fill=tk.BOTH, expand=True)
def initialize_temperature_graph ( self , container ) : self . temperature_figure = Figure ( figsize = ( 5 , 5 ) , dpi = 100 ) self . temperature_subplot = self . temperature_figure . add_subplot ( 111 ) self . temperature_subplot . set_title ( "1D Heat Transfer" ) self . temperature_subplot . set_xlabel ( "Time [s]" ) self . temperature_subplot . set_ylabel ( "Temperature [°C]") self . temperature_subplot . plot ( [ ] , [ ] ) self . canvas = FigureCanvasTkAgg ( self . temperature_figure , container ) self . canvas . draw ( ) self . canvas . get_tk_widget ( ) . pack ( side = tk . BOTTOM , fill = tk . BOTH , expand = True )
Renders graph into the window and gives it a template look.
Renders graph into the window and gives it a template look .
"""
        Renders graph into the window and gives it a template look.
        """
self
container