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

Home » Public Forums » archive » Re: IDL 8 NG widget problem
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: IDL 8 NG widget problem [message #74717 is a reply to message #74714] Tue, 01 February 2011 08:46 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
caroline cox writes:

> thanks, but I am not sure that will help. I have shown a simplified
> version of my program here. I actually call other functions from the
> menu buttons and I guess I want the function to make sure that if
> there is something already plotted in the widget space then it clears
> it and starts a fresh plot. I use widget_control, draw, get_value=win
> then win.select to plot in the current window. Is there anything that
> I can use here to clear the current plot? I have tried win.refresh.

I can't help you with IDL 8 function graphics, sorry.
I'll get around to fixing those in my next book. ;-)

But this is a pretty neat idea, so I just modified
FSC_Erase to have a Layout keyword like other Coyote
Graphics routines. This allows you to "erase" just
a portion of the display.

So, you can do this, for example.

FSC_Plot, LoadData(17), Layout=[2,2,1]
FSC_Plot, LoadData(17), Layout=[2,2,4]

Then, if you want to "erase" the first plot, you
just type:

FSC_Erase, Layout=[2,2,1]

I'll check this in later today with the other changes. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Library/Functions to write configuration file for application
Next Topic: Re: Contour Plot w/ Colorbar

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

Current Time: Fri Oct 10 15:39:52 PDT 2025

Total time taken to generate the page: 0.79677 seconds