4
$\begingroup$

I am attempting to export a 3D plot from mathematica with no background, but I seem to be unable to find a way.

ParametricPlot3D[{{Cos[x], Sin[x], x}, {Sin[x], Cos[x], x}}, {x, 0, 
  1}, PlotLegends -> {a, b}, Background -> None]
Export["test.eps", %, Background -> None]

The background of the legend is transparent, but not that behind the figure. I am able to do it in the case of 2D plots.

$\endgroup$
2
  • $\begingroup$ Which Mathematica version do you use? $\endgroup$ Jul 4, 2016 at 19:07
  • $\begingroup$ I'm using Version 10.4 $\endgroup$
    – zalba19
    Jul 4, 2016 at 19:09

1 Answer 1

5
$\begingroup$

With version 10.4.1 I get the plot rasterized (but not the legend) with your code. As a workaround you can use the Jens' trick:

Export["myFig2.eps", Graphics[Inset[pl, Automatic, Automatic, Scaled[1]]]];

Here is how the exported EPS file looks when opened by Adobe Acrobat 11 (I have selected a number on the frame in order to show that it is a selectable text):

scrrenshot

Not ideal but at least it is in vectors and has no background (the following is a screenshot of a MS Word 2003 document where I imported the EPS figure):

screenshot

$\endgroup$
1
  • $\begingroup$ Thanks! While it is not ideal, it is a decent work around for now. $\endgroup$
    – zalba19
    Jul 5, 2016 at 17:11

Your Answer

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

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