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 #74801 is a reply to message #74718] Tue, 01 February 2011 16:18 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Feb 1, 9:22 am, caroline cox <caroline.co...@gmail.com> wrote:
>
> 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.

Hi,

In IDL 8.1 we are adding a "Delete" method to the new graphics - it
will delete just that graphic. We are also adding a GetData/SetData
method, so you can change the data on an existing graphic (like a
Plot) and all of the properties will stay the same.

For now, in IDL 8.0, you can use the undocumented "PutData" method:
p = plot(/test)
p.PutData, findgen(2,100)
The first column is the X values, and the second is the Y values.

Hope this helps!

-Chris
ITTVIS
[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: Thu Oct 09 21:53:34 PDT 2025

Total time taken to generate the page: 0.15962 seconds