[SciPy-user] xplt issues

Arnd Baecker arnd.baecker at web.de
Tue Mar 2 11:51:05 CST 2004


On Tue, 2 Mar 2004, Arnd Baecker wrote:

[...]
> b) This example illustrates a `dynamic' plot
>
> ##################################
> from scipy.xplt import *
>
> figure()
> x=arange(0.0,0.5,0.001)
> hold('on')
> for xval in x:
>     print xval
>     yval = sin(xval / 4)
>     plot(xval, yval, 'x')
>     pause(1)
> ##################################
>
> The pause(1) is essential under linux so that the
> points are shown one after another.

My statement is not true, as
####################################
from scipy.xplt import *

window(0,wait=1)     #the trick is the wait=1 keyword
x=arange(0.0,5.0,0.001)
hold('on')
for xval in x:
    print xval
    yval=sin(xval/4)
    plot(xval,yval,'x')
####################################
works fine under linux, even without the pause.
(we have not tested this under windows yet).
So maybe this is a solution/work-around for point b).

Arnd



More information about the SciPy-user mailing list