I am attempting to save out a plot to .eps file, but cannot get the legend to come with it. Copying and pasting the image, saving as a JPEG and converting to .eps loses too much resolution for it too look good. Is there any way that I can save out a plot with its legend directly to .eps from Mathematica?

  • 2
    $\begingroup$ I tried Export["try.eps", Plot[{Sin[x], Cos[x]}, {x, -10, 10}, PlotLegends -> {"sin", "cos"}]] and I got this from the eps, which contains the legends. You will want to shared an example with complete code that reproduces your problem. $\endgroup$
    – MarcoB
    Commented Dec 4, 2020 at 18:02
  • $\begingroup$ @MarcoB that worked, if you want to write that as an answer I will accept it! Thanks! $\endgroup$
    – BOUNCE
    Commented Dec 4, 2020 at 18:31
  • 1
    $\begingroup$ done! Glad to hear that it worked! $\endgroup$
    – MarcoB
    Commented Dec 4, 2020 at 18:35

1 Answer 1

  Plot[{Sin[x], Cos[x]}, {x, -10, 10}, PlotLegends -> {"sin", "cos"}]

works as intended once exported to EPS.


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.