build/gui.py
def plot_pytrends(self):
        """
        Embeds the pytrends plot from pyt into the tKinter window. Master canvas
        is pytrends_canvas. Size and dpi are specific for formatting. 

        """

        p = pyt()
        
        data = p.get_data("bitcoin")
        
        y = data["bitcoin"].values
        
        # TODO: add actual dates instead of 0-whatever
        x = data.index
            
        fig = Figure()
        fig.set_size_inches(13, 2)
        fig.set_dpi(74.6)
        fig.add_subplot(111, title=f"Bitcoin: Interest Over Time").plot(x, y)
            
        canvas = FigureCanvasTkAgg(fig, master=self.pytrends_canvas)
        canvas.draw()
        canvas.get_tk_widget().pack()

        Embeds the pytrends plot from pyt into the tKinter window. Master canvas
        is pytrends_canvas. Size and dpi are specific for formatting. 

        
Embeds the pytrends plot from pyt into the tKinter window. Master canvas
is pytrends_canvas. Size and dpi are specific for formatting.
Embeds the pytrends plot from pyt into the tKinter window . Master canvas is pytrends_canvas . Size and dpi are specific for formatting .
def plot_pytrends(self):
        p = pyt()
        data = p.get_data("bitcoin")
        y = data["bitcoin"].values
        x = data.index
        fig = Figure()
        fig.set_size_inches(13, 2)
        fig.set_dpi(74.6)
        fig.add_subplot(111, title=f"Bitcoin: Interest Over Time").plot(x, y)
        canvas = FigureCanvasTkAgg(fig, master=self.pytrends_canvas)
        canvas.draw()
        canvas.get_tk_widget().pack()
def plot_pytrends ( self ) : p = pyt ( ) data = p . get_data ( "bitcoin" ) y = data [ "bitcoin" ] . values x = data . index fig = Figure ( ) fig . set_size_inches ( 13 , 2 ) fig . set_dpi ( 74.6 ) fig . add_subplot ( 111 , title = f"Bitcoin: Interest Over Time" ) . plot ( x , y ) canvas = FigureCanvasTkAgg ( fig , master = self . pytrends_canvas ) canvas . draw ( ) canvas . get_tk_widget ( ) . pack ( )
Embeds the pytrends plot from pyt into the tKinter window.
Embeds the pytrends plot from pyt into the tKinter window .
"""
        Embeds the pytrends plot from pyt into the tKinter window. Master canvas
        is pytrends_canvas. Size and dpi are specific for formatting. 

        """ # TODO: add actual dates instead of 0-whatever

self