[Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0

Adrien Vogt-Schilb vogt at centre-cired.fr
Tue Dec 4 17:32:25 CET 2012


On 04/12/2012 17:21, Jens Simon Strom wrote:
> In version 5.3 I have written a script which produces an animated plot of a
> magnetic field showing approx. 70 oscillating and rotating arrows. The arrows
> are generated by the command 'arrows' in a loop. I used the 'pixmap' and the
> 'show_pixmap()' command resulting in a perfect calm and smooth movie.
>
> Version 5.4.0 tells me that 'pixmap' is obsolete and 'drawlater' and 'drawnow'
> shall be used instead. I have tried my best with the latter two plus 'xpause'
> but never got a satisfying result - the animation performs like a defect silent
> film projector. Deleting seem to be an issue.
>
> Could anyone kindly  give me a hint how I can calm down the animation with
> 'drawlater' and 'drawnow' in a loop where arrows are drawn with 'arrows'?
>
> 'comet' might be a workarond but that would mean a new start from scratch.
>
> Kind regards
> Jens
>
>     
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
Hi

This works for me:


dt=30;x=1:0.1:10;fori=1:0.01:10drawlaterclf//clear plot 
plot(x,sin(i*x/10))//plot a=gca();a.data_bounds(:,2)=[-1;1];//fixes 
bounds drawnowxpause(dt)end



Is it what you are looking for?

Kind regards,
Adrien
Exported from Notepad++

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121204/8f2f299b/attachment.htm>


More information about the users mailing list