0
$\begingroup$

How to save ParametricPlot with opacity[0.5] with transparency?

When I save the image the transparency is completely lot. in both pdf and eps files. I use

The following code for saving my parametric plot.

Export["path\\figure.eps",Show[figure], "EPS"]

Update: I tried getting pdf out (replacing eps with pdf), still no luck.

$\endgroup$
7
  • 1
    $\begingroup$ EPS format does not support transparency. $\endgroup$
    – yarchik
    Feb 19 '20 at 13:50
  • $\begingroup$ I am fine with any format eps or pdf $\endgroup$
    – q than a
    Feb 19 '20 at 17:06
  • $\begingroup$ Can you get away with using SVG? It's also a vector format, but it seems like it supports transparency. I assume you prefer a vector image, but if you're okay with a rasterized image you could use PNG and just set the option ImageResolution -> 300 or some larger number to get good resolution. $\endgroup$
    – MassDefect
    Feb 19 '20 at 17:14
  • $\begingroup$ @MassDefect Thank you so much. Yes PNG would do. And, it is almost working. But this added an opacity to the frame too making that lighter than other frames of other figures. $\endgroup$
    – q than a
    Feb 19 '20 at 17:28
  • 2
    $\begingroup$ How are you adding in the opacity? If you just want the curves to be transparent, I would use something like plot = ParametricPlot[..., PlotStyle -> Opacity[0.5]]; Export["path\\figure.png", plot, Background -> None, ImageResolution -> 300] (assuming you also want a transparent background; if not, leave out the part about background). This should result in only the curves being partially transparent and the frame being whatever you specified using FrameStyle -> .... $\endgroup$
    – MassDefect
    Feb 19 '20 at 17:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.