src/django/shared/Monte.py
def plot_multi(self):
        """
        Function that plots all of the price simualtions at each time step into the future.

        :returns: plot_multi_str which is a string which contains the html for the graphical output.
        :rtype: str
        """

        plt.figure(figsize=(self.width, self.height))
        plt.plot(self.monte_sims)
        plt.xlabel('Days into the Future')
        plt.ylabel('Adjusted Closing Price')
        title = "Monte Carlo Simulations for Adjusted Closing Prices"
        plt.title(title)

        multi = plt.gcf()

        plot_multi_str = mpld3.fig_to_html(multi) # saves figure to string of html
        #plot_multi_dict = mpld3.fig_to_dict(multi)
        return plot_multi_str

        Function that plots all of the price simualtions at each time step into the future.

        :returns: plot_multi_str which is a string which contains the html for the graphical output.
        :rtype: str
        
Function that plots all of the price simualtions at each time step into the future.
Function that plots all of the price simualtions at each time step into the future .
def plot_multi(self):
        plt.figure(figsize=(self.width, self.height))
        plt.plot(self.monte_sims)
        plt.xlabel('Days into the Future')
        plt.ylabel('Adjusted Closing Price')
        title = "Monte Carlo Simulations for Adjusted Closing Prices"
        plt.title(title)
        multi = plt.gcf()
        plot_multi_str = mpld3.fig_to_html(multi) 
        return plot_multi_str
def plot_multi ( self ) : plt . figure ( figsize = ( self . width , self . height ) ) plt . plot ( self . monte_sims ) plt . xlabel ( 'Days into the Future' ) plt . ylabel ( 'Adjusted Closing Price' ) title = "Monte Carlo Simulations for Adjusted Closing Prices" plt . title ( title ) multi = plt . gcf ( ) plot_multi_str = mpld3 . fig_to_html ( multi ) return plot_multi_str
Function that plots all of the price simualtions at each time step into the future.
Function that plots all of the price simualtions at each time step into the future .
"""
        Function that plots all of the price simualtions at each time step into the future.

        :returns: plot_multi_str which is a string which contains the html for the graphical output.
        :rtype: str
        """ # saves figure to string of html #plot_multi_dict = mpld3.fig_to_dict(multi)
plot_multi_str which is a string which contains the html for the graphical output.
plot_multi_str which is a string which contains the html for the graphical output .
str
self