rk4odes/GUI/GUI.py
def graph(self):
        """
        Graph values of each iteration of method
        """

        if len(self.ts) == 0 or len(self.ts) == 0:
            # raise ValueError('You need to press computed first')
            messagebox.showerror('Error', 'You need to press computed first')
        else:
            self.ax.clear()
            self.ax.set_title('Solution graph')
            self.ax.scatter(self.ts[len(self.ts) - 1], self.ys[len(self.ys) - 1],
                            facecolor='k',
                            label=r'$ y({}) = {:.4f}$'.format(self.t.get(), self.ys[len(self.ys) - 1]))
            self.ax.set_xlabel("$ t $")
            self.ax.set_ylabel("$ y(t) $", rotation='horizontal', fontsize='large')
            self.ax.plot(self.ts, self.ys, '--r', label='Solution curve')
            self.ax.legend()
            self.ax.grid()

            self.canvas.draw()
            self.ts.clear()
            self.ys.clear()

        Graph values of each iteration of method
        
Graph values of each iteration of method
Graph values of each iteration of method
def graph(self):
        if len(self.ts) == 0 or len(self.ts) == 0:
            messagebox.showerror('Error', 'You need to press computed first')
        else:
            self.ax.clear()
            self.ax.set_title('Solution graph')
            self.ax.scatter(self.ts[len(self.ts) - 1], self.ys[len(self.ys) - 1],
                            facecolor='k',
                            label=r'$ y({}) = {:.4f}$'.format(self.t.get(), self.ys[len(self.ys) - 1]))
            self.ax.set_xlabel("$ t $")
            self.ax.set_ylabel("$ y(t) $", rotation='horizontal', fontsize='large')
            self.ax.plot(self.ts, self.ys, '--r', label='Solution curve')
            self.ax.legend()
            self.ax.grid()
            self.canvas.draw()
            self.ts.clear()
            self.ys.clear()
def graph ( self ) : if len ( self . ts ) == 0 or len ( self . ts ) == 0 : messagebox . showerror ( 'Error' , 'You need to press computed first' ) else : self . ax . clear ( ) self . ax . set_title ( 'Solution graph' ) self . ax . scatter ( self . ts [ len ( self . ts ) - 1 ] , self . ys [ len ( self . ys ) - 1 ] , facecolor = 'k' , label = r'$ y({}) = {:.4f}$' . format ( self . t . get ( ) , self . ys [ len ( self . ys ) - 1 ] ) ) self . ax . set_xlabel ( "$ t $" ) self . ax . set_ylabel ( "$ y(t) $" , rotation = 'horizontal' , fontsize = 'large' ) self . ax . plot ( self . ts , self . ys , '--r' , label = 'Solution curve' ) self . ax . legend ( ) self . ax . grid ( ) self . canvas . draw ( ) self . ts . clear ( ) self . ys . clear ( )
Graph values of each iteration of method
Graph values of each iteration of method
"""
        Graph values of each iteration of method
        """ # raise ValueError('You need to press computed first')
self