3
$\begingroup$

How do I export a ParametricPlot as a png image with no background? For example, my exported image look like this:

enter image description here

But it has a white background. I need that white background to be a completely transparent alpha channel, but I cannot figure out how to do this with ParametricPlot. Can somebody give an example using the Export command?

$\endgroup$
1
  • 2
    $\begingroup$ The easiest way is to do Export["test.png",Rasterize[yourplot,Background->None]]. $\endgroup$
    – N.J.Evans
    Commented Dec 17, 2018 at 18:40

1 Answer 1

4
$\begingroup$

Just use Background -> None inside Export . Assume that you have a parametric plot

a = ParametricPlot[{Sin[u], Sin[2 u]}, {u, 0, 2 Pi}] .

Export["tra.png", a, Background -> None] .

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.