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

Home » Public Forums » archive » Relationship between IDLgrXXXX and associated NG functions. Was: IDL documentation gripe - How to erase a new graphics window?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Relationship between IDLgrXXXX and associated NG functions. Was: IDL documentation gripe - How to erase a new graphics window? [message #80124] Tue, 01 May 2012 07:06
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

I've started replacing the DG draw widgets in my widget apps with NG window widgets. The way I use a particular app was
to plot different things based on a selection from a button group. In DG there's no worries - you just call plot and the
erase happens automagically and the new plot appears. But in NG the plots just pile on top of each other. I've searched
the IDL documentation for the PLOT() and WINDOW() functions but there doesn't appear to be an "Erase" method.

However, when I look at the IDLgrWindow window documentation there is the Erase method listed.

Which does work with the window created using Window(),e.g.

IDL> w=window()
% Loaded DLM: XML.
IDL> p=plot(indgen(100),current=w)
IDL> w.erase

So, does this mean ALL IDLgrXXXX methods work with the associated NG functions (e.g. IDLgrPlot for PLOT(), IDLgrSurface
for SURFACE() etc)?

And what about vice-versa?

cheers,

paulv
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: simplest contour & .png
Next Topic: SVDC for EOF analysis of time series data

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

Current Time: Thu Oct 09 11:23:21 PDT 2025

Total time taken to generate the page: 1.76267 seconds