comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » how do I erase old data when using plots?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how do I erase old data when using plots? [message #43419 is a reply to message #43412] Mon, 11 April 2005 10:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Jackson writes:

> Unlike the plot command, when I use the plots command and then re-use it
> with new data, the old data remains on the graph. While I am rather fond of
> the old data, I would like prefer it not be there. There doesn't appear to
> be an option for plots that will erase the old data first. Is there a
> simple way of clearing this data?

In simple situations, you just call the PLOT command again,
with the NODATA keyword set. Then draw your data with PLOTS.

Sometimes this flashes more than you would like, so then you
resort to smoke and mirrors and use the DEVICE, COPY technique
with a pixmap.

Make a pixmap the same size as your window. Draw the PLOT without
data into it. Use DEVICE with the COPY keyword to erase the display
window with the contents of the pixmap window. Then do your
PLOTS onto the display window. Very fast, very little flashing.
This is the way the pros do it. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: vector matrix multipication
Next Topic: Re: IDL Demo Use

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:24:59 PDT 2025

Total time taken to generate the page: 1.52266 seconds