basic question

I just want to see my figure displayed in a Tkinter window,

    > without using pylab, with no extras. No other goals right
    > now.

    > Is
    > http://matplotlib.sourceforge.net/examples/embedding_in_tk.py
    > essentially a *minimal* example of how to do this? (Aside
    > from the title and toolbar stuff.)

Yes, embedding_in_tk.py is essentially a minimal example (a truly
minimal example would have no toolbar). embedding_in_tk2.py shows an
example with no matplotlib toolbar but which adds a new button.

    > E.g., choice of backend never implies that we can avoid
    > explicitly embedding, as this example illustrates, right?

I don't understand what this means....

    > PS What happened to the object oriented "intro" that was
    > linked from the Matplotlib page for awhile? Or did I just
    > overlook it?

http://matplotlib.sourceforge.net/faq.html#OO

Cheers!
JDH

Alan asked:

http://matplotlib.sourceforge.net/examples/embedding_in_tk.py
choice of backend never implies that we can avoid
explicitly embedding, as this example illustrates, right?

I don't understand what this means....

Perhaps my question is completely at odds with the whole
point of the object oriented structure in matplotlib, which
I have yet to grok, but ...

I was asking essentially if we can deal only with matplotlib
objects and not (directly) with Tkinter objects. (So, e.g.,
we would not explicitly import Tkinter and set its mainloop,
and would not explicitly construct the Tk object.) I do not
*mind* dealing with Tkinter this way; I just want to confirm
that this is "minimal". (E.g., that there is not something
analagous to canvas.print_figure when producing a GUI display,
which would do basic Tkinter bookkeeping for a figure display.)

Thanks,
Alan

···

On Thu, 21 Jul 2005, John Hunter apparently wrote: