Re: transparent background for line plot in IDL 8.0 [message #72412] |
Wed, 15 September 2010 15:15  |
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
|
|
|