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

Home » Public Forums » archive » Re: help with transparent plot in version 8.2.2
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: help with transparent plot in version 8.2.2 [message #83651 is a reply to message #83650] Thu, 14 March 2013 10:00 Go to previous messageGo to previous message
Teddy Allen is currently offline  Teddy Allen
Messages: 13
Registered: October 2010
Junior Member
On Thursday, March 14, 2013 9:40:12 AM UTC-4, David Fanning wrote:
> Teddy Allen writes:
>
>
>
>> In the past I was able to easily save any line plot with a transparent background simply by saving the plot as:
>
>>
>
>> plot.save,'transparent_plot.png',/TRANSPARENT
>
>>
>
>> Unfortunately, this does not seem to work anymore if used with the plot function with the POSITION keyword. The following lines of code do not produce an expected transparent .png .
>
>
>
> I get transparent plots with or without the POSITION keyword on my
>
> Windows machine in IDL 8.2.2.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Very strange, I do NOT get a transparent images when I include the POSITION keyword.

p = plot(GPCP2b[0,0,*],position=[0,0,SC,SC],yrange=[0,max(GPCP2b )],XSHOWTEXT=0,YSHOWTEXT=0,color='black',TRANSPARENCY=0)
p.save,'C:\datasets\testPOSITION_ONE.png',/TRANSPARENT

DO NOT RETURN TRANSPARENT IMAGE, but the following DOES:
p = plot(GPCP2b[0,0,*],yrange=[0,max(GPCP2b)],XSHOWTEXT=0,YSHOWT EXT=0,color='black',TRANSPARENCY=0)
p.save,'C:\datasets\testPOSITION_ONE.png',/TRANSPARENT
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgPlotS and cgColorBar issues
Next Topic: setcurrent and buffer don't work together?

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

Current Time: Wed Oct 08 15:28:27 PDT 2025

Total time taken to generate the page: 0.00565 seconds