[R] problem with grid animation

2005-11-13 Thread Zepu Zhang
I'm trying to do animation with grid. Basically it's a vector field, like what 
'quiver' 
in Matlab creates. I need to update it with grid.edit(). It seems grid erases 
the 
whole thing first, then redraws. Therefore the evident 'flash' between frames.

Any way to avoid this flash? Thanks.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] problem with grid animation

2005-11-13 Thread Paul Murrell
Hi


Zepu Zhang wrote:
 I'm trying to do animation with grid. Basically it's a vector field, like 
 what 'quiver' 
 in Matlab creates. I need to update it with grid.edit(). It seems grid erases 
 the 
 whole thing first, then redraws. Therefore the evident 'flash' between frames.


Correct.


 Any way to avoid this flash? Thanks.


There are a couple of ways, but unfortunately they may not be to your 
taste ...

1)  Use windows (where double-buffering has been implemented)
2)  Find some way to convince someone to modify the X11 device (or 
whichever device you are using) to support double-buffering
3)  Provide a patch for the X11 device yourself ...

Paul
-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
[EMAIL PROTECTED]
http://www.stat.auckland.ac.nz/~paul/

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html