[R] Redrawing !
cyg at sympatico.ca
Sun Jan 14 16:12:33 CET 2001
> -----Message d'origine-----
> De : ripley at auk.stats [mailto:ripley at auk.stats]De la part de Prof Brian
> D Ripley
> Envoyé : Sunday, January 14, 2001 8:17 AM
> À : Yves Gauvreau
> Cc : R-help at lists. R-project. org
> Objet : Re: [R] Redrawing !
> On Sun, 14 Jan 2001, Yves Gauvreau wrote:
> > Hi,
> > If I may suggest that something be done to the window drawing
> function of a
> > plot. As it is now, we don't even have time to resize the
> window by a tiny
> > bit before it's invoke and I think it would be an improvement
> if while the
> > mouse is down the redrawing was delayed somehow. This is especially true
> > when the plot is crowded. I also observed that moving the plot
> window around
> > was a lot smoother and easier. Which allows us to have much more control
> > over the positioning then the resizing of the plot window.
> Are you talking about the default device on Windows? I don't see a
> problem, so it may be a graphics card/driver performance issue, or even a
> Windows version issue.
Yes to the first question if an ordinary call to plot(1:10) goes to the
default device on Windows.
I run NT 4.0 sp 6a and I have a very old graphics card, so this could be the
cause of this behavior I've observed. A question remains though, how come
the behavior is different when I move the device then when I resize it?
I know that moving the device causes a WM_MOVE event and resizing cause a
WM_SIZE event as you said below and that they are being handled differently.
(I looked at the code in GraphApp\event.c)
Just to make sure there is no misunderstanding, I'm not making a complaint
of any kind here, I'm just making an observation. With most Windows
applications I use I observe that resizing a window (in Windoze parlance)
with the mouse kind of blanks the interior of window until we're finish and
then it is redrawn. With R's default device it is as if every WM_MOUSEMOVE
event trigger's a complete redraw of the window which make the feeling quite
different. If changing this behavior in future release is to complicated
then lets just forget it as I and most certainly any other Windows user can
live with that even more so if using a more recent graphic card make the
> This is buried in the GraphApp code which reacts to a Windows WM_SIZE
> event, so I have no idea how to change this. Would you like to submit a
I would like to be able to do that but I don't know how. But I know that if
the code handling the window events where to record globally the state of
the mouse it think it would be relatively easy in the WM_SIZE handling code
to check the mouse state and act accordingly.
> > Thank for an incredible piece of software.
> > Yves Gauvreau
> > B.E.F.P. Université du Québec à Montréal
> > cyg at sympatico.ca
> > platform i386-pc-mingw32
> > arch x86
> > os Win32
> > system x86, Win32
> > status
> > major 1
> > minor 2.0
> > year 2000
> > month 12
> > day 15
> > language R
> > r-help mailing list -- Read
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help