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

Home » Public Forums » archive » oplot with colours
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: oplot with colours [message #67558 is a reply to message #67483] Fri, 31 July 2009 07:07 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
b.a writes:

> In my program, there is a main widget which has "button1". each time
> "button1" is pressed, a relevant file opens and according to the data
> values in that file, a curve is plotted (actually Oplotted) on the
> draw window. For each curve, there exists a "remove button". Now I
> want to remove the relevant curve (plot) , whenever "remove button" is
> clicked.
>
> As far as I know if I use iplot, each time a curve is plotted, it
> would be a new popup window.

You haven't been here long enough to fully appreciate
Coyote's sense of humor. (Sometimes he writes these
articles while I'm playing tennis.) Ignore the iPlot
suggestion. He was making a joke.

> I don't know how to appear that window in
> my GUI. and by the way I didn't understand "Draw the plot
> over without that curve in it".

Presumably you have a list of the things you have plotted
in the window. (Maybe you made a pointer array or used
a LinkedList or something, so you can re-draw them in
the window, if needed.) To delete a plot, just remove
it from that list and re-plot the rest of the items in
the list. Or, maybe you have a flag of list indices, and
you only plot the items in the list if the flag is set to
1. Something along those lines.

Cheers,

David


--
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
Previous Topic: compiling and running
Next Topic: Re: compiling and running

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

Current Time: Fri Oct 10 03:51:52 PDT 2025

Total time taken to generate the page: 0.96292 seconds