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

Home » Public Forums » archive » How to erase a (function graphics) 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
How to erase a (function graphics) plot. [message #79459] Sun, 04 March 2012 21:27 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I am building a widget application with a widget_window for displaying function graphics plots. By default, function graphics does not erase the old plot in the same window.

p1 = plot(indgen(10))
p2 = plot( sin(indgen(10),/current)

There is a delete method

p1.delete

but that doesn't delete the axes, which still get jumbled together. There is a close method but that destroys the window, and I'd like to keep reusing the widget_window.

Right now I am erasing the plot by loading a white IMAGE() but I hope there is a better way.

Thanks, --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How can I limit maximum value plotted with cgPlotS?
Next Topic: Re: Move data to structure fields without copying

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

Current Time: Wed Oct 08 18:10:12 PDT 2025

Total time taken to generate the page: 0.00675 seconds