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

Home » Public Forums » archive » Re: transparent background for line plot in IDL 8.0
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: transparent background for line plot in IDL 8.0 [message #72412] Wed, 15 September 2010 15:15 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Sep 15, 7:23 am, teddyallen <teddyal...@yahoo.com> wrote:
> I have a question that seems to be simple, but the answer continues to
> elude me....
> I have a straight-forward 2D plot (rainfall time series) that I want
> to import to powerpoint, BUT I would like to import it with a
> transparent background. Basically, I just want the plot with no
> background color. I have read the previous posts, but am lead to
> believe that 8.0 should be more simple.
>
> Below is my plot command:
>
> p=PLOT(leeTRMMday, color
> ='magenta',yrange=[0,0.5],thick=2,xticks=12,xtickname = months,$
>        title='1998 - 2009 TRMM daily climatology',
> background='transparent')
>
> Is the BACKGROUND keyword used properly? The plot is what I want, but
> the background is still white.There are no compilation errors. What
> exactly does the BACKGROUND keyword in the PLOT procedure represent?
> Is this not the correct way to reference a clear background for a
> plot?
>
> Thank you for any hints.
> cheers,
> teddy allen

Hi Teddy,

You should be able to export to a transparent PNG:

p=PLOT(leeTRMMday,
color='magenta',yrange=[0,0.5],thick=2,xticks=12,xtickname = months,$
title='1998 - 2009 TRMM daily climatology')
p.Save, 'myplot.png', /TRANSPARENT

There are other keywords to the Save method which might be useful,
like BORDER, RESOLUTION, WIDTH, HEIGHT, etc.

Cheers,
Chris
ITTVIS
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: LinkedList not recognized as object by Help
Next Topic: UNIT

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

Current Time: Wed Oct 08 14:36:36 PDT 2025

Total time taken to generate the page: 0.00272 seconds