Giorgio Luciano wrote:
> ... when I restart the function ... all plots freeze.

can you give an example?

In [1]: from pylab import *

In [2]: def f(x):
   ...:     return 2*x
   ...:

In [8]: plot f(array(range(10)))
------> plot(f(array(range(10))))
Out[8]: [<matplotlib.lines.Line2D instance at 0x41f41ecc>]

In [9]: show
------> show()

In [10]: def f(x):
   ....:     return x*x
   ....:

In [11]: plot f(array(range(10)))
-------> plot(f(array(range(10))))
Out[11]: [<matplotlib.lines.Line2D instance at 0x43e0ea8c>]

In [12]: show
-------> show()


works here...
sebastian.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to