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

Home » Public Forums » archive » Re: FG subplot question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: FG subplot question [message #89976] Mon, 12 January 2015 10:04
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, September 12, 2014 at 12:34:49 PM UTC-6, Chris Torrence wrote:
> On Friday, September 12, 2014 11:26:01 AM UTC-6, Chris Torrence wrote:
>> On Friday, September 12, 2014 8:13:25 AM UTC-6, Helder wrote:
>>
>>> Hi Chris,
>>
>>>
>>
>>> thanks for the suggestion, but I rather wait for IDL 8.4 or the first version where this is corrected. If I change things I don't, I'm sure I won't find the problem when I forget I changed that. And I would have to change this on more than one machine... making things also difficult.
>>
>>>
>>
>>>
>>
>>>
>>
>>> I solved this by simply overlapping two separate plots in my ppt presentation.
>>
>>>
>>
>>>
>>
>>>
>>
>>> By the way, I haven't tried this and it's probably easy, but is it possible to export transparent graphics, without a white (or whatever color) background?
>>
>>>
>>
>>>
>>
>>>
>>
>>> Thanks,
>>
>>>
>>
>>> Helder
>>
>>>
>>
>>>
>>
>>>
>>
>>>
>>
>>>
>>
>>> PS: I don't agree with "everything's perverse until you get used to it...". There are things that should/could be and things that just shouldn't be. That's what progress is about. Making perverse twisted solutions obvious. Time helps, but things stay perverse.
>>
>>
>>
>> Well, it was supposed to be tongue-in-cheek. Perhaps it's because I've been working on the IDL->Python bridge. Talk about perverse...
>>
>>
>>
>> Anyway, glad to hear that at least the "transparent" was easy. Have you tried using the BORDER keyword, to crop out unnecessary whitespace?
>>
>>
>>
>> -Chris
>
> I don't think I'm going to fix this for IDL 8.4. It's too risky to fix this late in the game. One side effect of my change that I already discovered - if you cover up a plot with a new plot (using /current), then even if the background is transparent, you can't select the plot line underneath.
>
> So, for now, I would suggest that you continue to do the "fake plot" hack, until I can come up with a solution that doesn't break other things.
>
> Sorry about that.
>
> Cheers,
> Chris

Okay, I've checked in a fix for this for IDL 8.4.1. If the background is opaque (i.e. has transparency < 100%) then it will obscure anything underneath it. So, for your original code, you would just need to give your inset plot a background color (white will work fine):

p = plot(findgen(100))
i = plot(1.0/(findgen(100)+1),current=p, $
position=[0.7,0.7,(p.position)[2],(p.position)[3]], $
BACKGROUND_COLOR='white')

Later on, if for some reason you wanted your plot line on the bottom to reappear, you could set BACKGROUND_TRANSPARENCY=100.

Cheers,
Chris
Exelis
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Sparse matrixes
Next Topic: IDL inverse matrix problem

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

Current Time: Wed Oct 08 07:17:35 PDT 2025

Total time taken to generate the page: 0.00358 seconds