Re: [Tutor] Matplotlib in Tkinter

2017-02-26 Thread Albert-Jan Roskam
my_plot.grid(row=0, column=0) # use grid here button = Button (root, text="quit", fg='red', command=root.quit) button.grid(row=1, column=0) root.mainloop() From: Pooja Bhalode Sent: Sunday, February 26, 2017 3:47:37 PM To: Albert-Jan Roskam Subje

Re: [Tutor] Matplotlib in Tkinter

2017-02-25 Thread Albert-Jan Roskam
(Sorry for top-posting) Hi, I recently ran into the same problem when I wanted to embed an interactive Matplotlib choropleth in my Tkinter app. I solved it by creating a separate class MyPlot for plot + toolbar (it inherited from Tkinter.Frame). MyPlot internally uses the pack geometry manager

Re: [Tutor] Matplotlib in Tkinter

2017-02-20 Thread Alan Gauld via Tutor
On 20/02/17 14:54, Pooja Bhalode wrote: > Another issue, in this that is happening which is far more important from > the perspective that I am looking at, is that when I click the button > twice, two graphs get created one below the other. > > I tried adding a delete("all") statement as shown b

Re: [Tutor] Matplotlib in Tkinter

2017-02-20 Thread Pooja Bhalode
Hi, Another issue, in this that is happening which is far more important from the perspective that I am looking at, is that when I click the button twice, two graphs get created one below the other. I tried adding a delete("all") statement as shown below. Code: def Submitplot(): print "Cre