[SciPy-User] Some interactive Python tutorials on basic stats, possibly useful for teaching

Nathaniel Peterson nathanielpeterson08 at gmail.com
Thu Feb 17 12:01:59 EST 2011


> 2011/2/14 Stéfan van der Walt <stefan at sun.ac.za>:
> > On Mon, Feb 14, 2011 at 6:04 PM, bhanukiran perabathini
> > <bhanukiran.perabathini at gmail.com> wrote:
> >> and nothing happens as I click around on the canvas.
> >
> > This seems to be a bug in some of the matplotlib backends.  If you
> > grab the window and resize it, everything should appear (let's hope).
> >

> Same for me on linux with a tarball from svn mpl 1.0 rev 8222 and
> 'WXAgg' or 'Qt4Agg' backend (only 2 I tried). It works as expected if
> I run ipython with the -pylab switch though.

> Skipper

For those for which nothing seems to happen when you click on the canvas, 

Adding 

pylab.ion()

right after the comment

#######################################################################
# This is the main part of the program, which calls the above functions 
#######################################################################

seems to fix the problem, at least on Ubuntu 9.10, matplotlib 0.99.0,
GtkAgg backend.

Thank you, Rajeev Raizada, for the great code!



More information about the SciPy-User mailing list