Thanks, corrected.
I just forgot the pylab import, it has been corrected as well.

Nicolas


On Tue, 2008-07-01 at 08:38 -0500, John Hunter wrote:
> 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?


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to