From: Todd M. <jm...@st...> - 2004-03-16 19:36:12
|
On Tue, 2004-03-16 at 07:29, John Hunter wrote: > >>>>> "Gary" == Gary Pajer <pa...@in...> writes: > > Gary> I've been poking aroung a bit trying to see if I can locate > Gary> my plots in a frame in my own Tkinter GUI rather than a > Gary> stand-alone window. > > Gary> It looks like it might be possible if I can, for example, > Gary> extract the frame instance from a TkAgg plot (or something > Gary> like that) > > Gary> Can anyone comment or suggest a route? > First an apology. I didn't see this until late yesterday when Perry alerted me. I wasn't subscribed to matplotlib-users. > Todd, is this easily doable? Frankly, I'm not sure. I'll try to work it out this afternoon. I imagine if it's possible in GTK it's possible in Tk. > Could you write an embedding_in_tk.py > example along the lines of embedding_in_gtk and embedding_in_wx? I'll try and let you know. > > The FigureCanvas derived instance in backend_* is meant to be a widget > you could plug into a GUI, but I notice you took a different tack in > backend_tkagg. The idea behind this is that users may want to embed a > figure as part of a GUI window, eg in a widget container, without > necessarily bringing the toolbar along or using the whole window. > Would this be an easy refactoring of backend_tkagg? We'll see. Regards, Todd -- Todd Miller <jm...@st...> |