DEV Community

loading...

embedded error after using Matplotlib on tkinter window

helloankur profile image helloankur ・1 min read
class Window()
def __init__(self, master):
    self.master = master
    self.fig = Figure(figsize=(6, 4), dpi=100)

    self.canvas = FigureCanvasTkAgg(self.fig, master=master)
    self.canvas.get_tk_widget().place(x=10, y=10)
    self.toolbar = NavigationToolbar2Tk(self.canvas, master)
    self.toolbar.place(x=0, y=500)

    self.fig1 = Figure(figsize=(6, 4), dpi=100)

    self.canvas1 = FigureCanvasTkAgg(self.fig1, master=master)

    self.canvas1.get_tk_widget().place(x=650, y=10)
    self.toolbar1 = NavigationToolbar2Tk(self.canvas1, master)
    self.toolbar1.place(x=650, y=500)

def all_graph(self, master, x, y, image_name):
    global plot

Discussion

pic
Editor guide