Simple doubt: animating a plot

Lucio Agostinho Rocha outrosdiasvirao at yahoo.com.br
Thu Jul 8 21:10:41 CEST 2010


Hi,

I need to dynamically to plot some points in a discrete matrix using SciLab, something like this:

i=1;
while i>0;

   plot(y,x,'.w');
   plot(y,x+1,'.r');
   plot(y,x+1,'.w');
   plot(y,x,'.r');

   disp(i);
   i=i+1;

end;

But, in less of 100 iterations, the plotting is reducing your speed. What am I doing wrong? Some suggestion? I imagine that I need to flush something.

Thanks in advance,

Lucio
.....


--- Em ter, 29/9/09, Pierre LANDO <pierre.lando at scilab.org> escreveu:

> De: Pierre LANDO <pierre.lando at scilab.org>
> Assunto: Re: [scilab-Users] Is there a Angle Histogram in Scilab?
> Para: users at lists.scilab.org
> Data: Terça-feira, 29 de Setembro de 2009, 11:42
> Lucio Agostinho Rocha says : "Is
> there a Angle Histogram in Scilab?"
> 
> As I know no, but you can use xfarcs
> 
> ******
> function AngleHistogram(R,A,E,C)
>  plot2d(0,0,-1,"031"," ",[-1,-1,1,1]);
>  arcs=[-R;R;2*R;2*R;(A-E/2)*64;E*64];
>  xfarcs(arcs,C);
> endfunction
> 
> 
> R=[.7,.5,.6]        // radius
> A=[12,225,136]    // theta
> E=[42,25,36]        // opening angle
> C=[3,4,5]        // color
> 
> 
> AngleHistogram(R,A,E,C)
> ******
> 
> -- -------------------------
> Pierre LANDO
> Ingénieur de développement
> -------------------------
> Consortium Scilab
> Digiteo
> Domaine de Voluceau
> Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France
> Tél. : +33.1.39.63.58.21
> 
> 


      



More information about the users mailing list