src/django/shared/Monte.py
def plot_history(self):
        """
        Function that plots the history of stock prices in the time frame set by the user.

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

        stock_plot = self.data.plot(figsize=(self.width, self.height))
        stock_plot.set_xlabel('Date')
        stock_plot.set_ylabel('Adjusted Closing Price')
        stock_plot.set_title("Historical Adjusted Closing Prices Over Time")

        history = plt.gcf()
        self.history = history

        plot_history_str = mpld3.fig_to_html(self.history) # saves figure to string of html
        #plot_history_dict = mpld3.fig_to_dict(self.history)
        return plot_history_str

        Function that plots the history of stock prices in the time frame set by the user.

        :returns: plot_history_str which is a string which contains the html for the graphical output.
        :rtype: str
        
Function that plots the history of stock prices in the time frame set by the user.
Function that plots the history of stock prices in the time frame set by the user .
def plot_history(self):
        stock_plot = self.data.plot(figsize=(self.width, self.height))
        stock_plot.set_xlabel('Date')
        stock_plot.set_ylabel('Adjusted Closing Price')
        stock_plot.set_title("Historical Adjusted Closing Prices Over Time")
        history = plt.gcf()
        self.history = history
        plot_history_str = mpld3.fig_to_html(self.history) 
        return plot_history_str
def plot_history ( self ) : stock_plot = self . data . plot ( figsize = ( self . width , self . height ) ) stock_plot . set_xlabel ( 'Date' ) stock_plot . set_ylabel ( 'Adjusted Closing Price' ) stock_plot . set_title ( "Historical Adjusted Closing Prices Over Time" ) history = plt . gcf ( ) self . history = history plot_history_str = mpld3 . fig_to_html ( self . history ) return plot_history_str
Function that plots the history of stock prices in the time frame set by the user.
Function that plots the history of stock prices in the time frame set by the user .
"""
        Function that plots the history of stock prices in the time frame set by the user.

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