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 #72796 is a reply to message #72795] Tue, 05 October 2010 10:36 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Oct 5, 2:06 pm, Jean <jeanbilh...@gmail.com> wrote:
> #1 I'm calling the new IDL 8.0 plot feature object plot has an
> official name has been found for this guy ?  :-)

The official name is Graphics. But people often call them New Graphics
(NG), to distinguish from Direct Graphics (DG) and Object Graphics (OG
- in the sense of handling OG directly, since NG is made from OG
objects).

> #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.

I think what you want is to replace the data in the plot. If so, you
could use the putdata method. An example:


IDL> p=plot(/test) ;Make some plot with the example data
% Loaded DLM: XML.
IDL> d=p.data ;Retrieve the data in the plot
IDL> help,d
D FLOAT = Array[3, 200]
IDL> d=d[*,0:50]*2d0 ;Make some new data for the plot
IDL> p.putdata,d ;Replace the plot data
[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: Fri Oct 10 12:30:23 PDT 2025

Total time taken to generate the page: 0.31892 seconds