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

Home » Public Forums » archive » Re: How to clear an object plot
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 to clear an object plot [message #72795 is a reply to message #72794] Tue, 05 October 2010 10:39 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jean writes:

>
> Hi again,
>
> #1 I'm calling the new IDL 8.0 plot feature object plot has an
> official name has been found for this guy ? :-)

New Graphics (NG), I think. :-)

> #2 I'm creating a very simple plot
>> _p = plot(indgen(10))
> but now I want to very quickly display another using the same _p
> window. Closing this one and creating a new one won't work because I
> need to do this at a very high rate.
>
> To get the full story, I have an application that shows a 2d image
> (using tvscl). When the user moves his mouse over this image, the z vs
> x and z vs y are plotted in 2 differents plot objects.
>
> I tried to use _p.select and _p = plot(<new plot>) but this plots the
> new data on top of the old one.
>
> Am I missing something here ?

I think you missed the undocumented method PutData. ;-)

_p.PutData, newdata

Cheers,

David

P.S. I've been meaning to write an article about this, but
I've gotten caught up in another project. Maybe soon now.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to clear an object plot
Next Topic: Re: Setting the IDL Path

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

Current Time: Wed Oct 08 16:21:21 PDT 2025

Total time taken to generate the page: 0.00222 seconds