Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-11-24 Thread Michka
johnmcpot wrote: > > Hi JD, > > I'm having exactly the same problem. Did you find a solution? > Hello I have exactly the same problem while embedding matplotlib in PyQT4 on OS X with backend_qt4agg. I think I have found a solution : do you use frameon=False in this line : fig = Figure(figs

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-11-17 Thread johnmcpot
Hi JD, I'm having exactly the same problem. Did you find a solution? The only thing that I have noted so far is that when I plot for the second time (when the axes start overlapping) if I move the cursor inside the canvas area, it flickers and then the plots are displayed correctly. But it only

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-14 Thread JD83
Sorry, it doesn't work. ax.set_ylabel("foo") doesn't change anything (before "ax.yaxis.cla()"). And f.clf(keep_observers=False) still locks the process. But maybe I used wrong terms. Here is the displays ; left before the clearing ; right, after the clearing ; the plot is correctly renewed, bu

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-14 Thread JD83
Sorry, it doesn't work. ax.set_ylabel("foo") doesn't change anything (before "ax.yaxis.cla()"). And f.clf(keep_observers=False) still locks the process. But maybe I used wrong terms. Here is the displays ; left before the clearing ; right, after the clearing ; the plot is correctly renewed, bu

Re: [Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-13 Thread Paul Ivanov
JD83, on 2011-07-13 08:59, wrote: > > I am writing a script with a matplotlib figure embedded in a Tkinter Frame : > > fig=Figure() > ax=fig.add_subplot(111) > canvas = FigureCanvasTkAgg(fig, root) > > and so on... > > Everything goes well but when i try to clear the figure, the xaxis and yaxi

[Matplotlib-users] Clearing the axis in a figure embedded in Tkinter

2011-07-13 Thread JD83
I am writing a script with a matplotlib figure embedded in a Tkinter Frame : fig=Figure() ax=fig.add_subplot(111) canvas = FigureCanvasTkAgg(fig, root) and so on... Everything goes well but when i try to clear the figure, the xaxis and yaxis don't desappear, so that the next axis print over the