MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Transparent background with PNG

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96936] Re: Transparent background with PNG
  • From: ragfield <ragfield at gmail.com>
  • Date: Fri, 27 Feb 2009 06:16:27 -0500 (EST)
  • References: <gnm1o0$hgg$1@smc.vnet.net>

On Feb 20, 4:47 am, replicator... at gmail.com wrote:
> how can I save an image to PNG format (eg. a simple plot), with the
> (white) background being transparent? I understand that PNG export
> supports alpha channel, but have no clue how to instruct Mathematica
> to exploit it.

g = Plot[Sin[x], {x, 0, 2 Pi}]

Export["~/Desktop/plot.png", g, Background -> None]

-Rob


  • Prev by Date: How to Export the "Manipulate"
  • Next by Date: Re: Transparent background with PNG
  • Previous by thread: Re: Transparent background with PNG
  • Next by thread: Re: Transparent background with PNG