|
From: Sebastian B. <seb...@gm...> - 2006-12-21 13:25:09
|
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. |