On Tue, Jul 1, 2008 at 5:31 AM, Nicolas Rougier
<[EMAIL PROTECTED]> wrote:

> There is now a installable package (pycons.tgz) available from:
>
> http://www.loria.fr/~rougier/pycons.html

Cool, this is working for me now.  Very nice.  Two more comments:

You must override draw_if_interactive *before* importing pylab:

    import matplotlib.backends.backend_gtkagg as backend_gtkagg

    def draw_if_interactive():
        """ Is called after every pylab drawing command """
        show(console)
    # do this before importing pylab
    backend_gtkagg.draw_if_interactive = draw_if_interactive
    import pylab
    import matplotlib.pylab
    from matplotlib._pylab_helpers import Gcf


and when I run in --pylab mode, the pylab namespace is not imported.
I have to manually 'from pylab import *' .  Is that intentional?

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to