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

Home » Public Forums » archive » Re: 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
Re: How to erase a (function graphics) plot. [message #88548 is a reply to message #88547] Mon, 12 May 2014 08:41 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, May 12, 2014 8:49:02 AM UTC-6, bobnn...@gmail.com wrote:
> On Sunday, May 11, 2014 7:19:10 PM UTC-6, Chris Torrence wrote:
>
>>>
>
>>
>
>>> Did this happen? I don't see it in 8.3.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> An erase method would be very useful. I find that when I rerun a script that greats a (function graphics) plot it always creates a new window, which steals the focus (and pops up the new window in the wrong place). This drives me crazy. It would be much better if I could erase the old one and reuse the same window. Then my window layout would stay put and focus would stay in the editing window.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Am I missing something?
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Bob
>
>>
>
>>
>
>>
>
>> Yep...
>
>>
>
>>
>
>>
>
>> http://www.exelisvis.com/docs/Erase_Method.html
>
>>
>
>>
>
>>
>
>> Looks like it got missed in the docs for each graphics function, but it's there!
>
>>
>
>> -Chris
>
>
>
> Thanks, Chris. This works, except that it doesn't erase the plot (it is still in the window). But plotting a new plot to current does erase it and plots the new one. Is this the intended behavior (I would have thought that erase would erase)?
>
>
>
> I'm using IDL 8.3 on Mac OS X 10.9.2 (note that I use the X11 backend since I run it from X11 emacs).
>
>
>
> Bob

Yep, I noticed that also. I thought it was just a quirk on my Mac, but I can reproduce it on Windows as well... I'll go ahead and fix it for the next service pack.
Thanks!
-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with IDLnetURL Callback Function
Next Topic: how to shade region of 2-D plot

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

Current Time: Wed Oct 08 18:07:07 PDT 2025

Total time taken to generate the page: 0.00378 seconds