2
$\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$
  • 2
    $\begingroup$ The easiest way is to do Export["test.png",Rasterize[yourplot,Background->None]]. $\endgroup$ – N.J.Evans Dec 17 '18 at 18:40
2
$\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$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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