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
python.org Subject: [Tutor] Matplotlib in Tkinter Hi, I am trying to create a graph in Tkinter window. And following is a snipet of the code. Code: simroot = Toplevel(root) simroot.title("Simulation of experiments") Label(simroot, text = "Displaying concentration profiles with res

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

[Tutor] Matplotlib in Tkinter

2017-02-19 Thread Pooja Bhalode
Hi, I am trying to create a graph in Tkinter window. And following is a snipet of the code. Code: simroot = Toplevel(root) simroot.title("Simulation of experiments") Label(simroot, text = "Displaying concentration profiles with respect to time:").pack(side = TOP) Label(simroot, text = "Select