2010/3/11 Kim Hansen <slaun...@gmail.com>: > canvas.get_tk_widget().grid(row=0) > canvas._tkcanvas.grid(row=1)
I cannot reproduce your problem. Can you maybe provide a self-contained script to reproduce the behaviour? Here is mine: >>> import Tkinter >>> import matplotlib >>> tk = Tkinter.Tk() >>> import matplotlib.figure >>> fig = matplotlib.figure.Figure() >>> fig.set_size_inches((3, 3)) >>> import matplotlib.backends.backend_tkagg >>> canvas = matplotlib.backends.backend_tkagg.FigureCanvasTkAgg(fig, master = >>> tk) >>> canvas.show() >>> canvas.get_tk_widget().grid(row = 0, column = 0) # or .grid(row = 0) >>> tk.columnconfigure(0, weight = 1) >>> tk.rowconfigure(0, weight = 1) >>> canvas.get_tk_widget().grid_forget() >>> canvas.get_tk_widget().grid(row = 0, column = 0, sticky = Tkinter.NSEW) Btw, do you know some nice way to change the xy data of a plot? At the moment, I'm always clearing the figure and drawing again. I also don't like the black frame around the figure, with my self-coded backend using similar code as backend_tkagg.py, I don't observe such a black frame. Friedrich ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users