0
$\begingroup$

I want to save my contour plot graphics in eps format, but when I try, the points plotted using Epilog do not show in the eps version. The plot looks like this in my Mathematica notebook:

enter image description here

But the saved eps looks like this:

enter image description here

None of the ploted points are visible. I have tried grouping but it doesn't work.

$\endgroup$
2
  • $\begingroup$ Which version of Mathematica do you use? How do you save: with Right Click -> Save Grahic As.. or with Export command? I don't have your code, so tried with simple example from Help: ContourPlot[{Abs[Sin[x] Sin[y]] == 0.5, Abs[Cos[x] Cos[y]] == 0.5}, {x, -3, 3}, {y, -3, 3}, Epilog -> {Green, PointSize[0.05], Point[{0, 1}]}]. Both methods work for me. $\endgroup$
    – Alx
    Aug 30, 2019 at 9:56
  • $\begingroup$ To come up with an answer, most of us would want to run tests with your code. But you give us no code. I think you are unlikely to get an answer unless you edit your question to include *all the code needed to reproduce your problem. $\endgroup$
    – m_goldberg
    Aug 30, 2019 at 13:44

1 Answer 1

1
$\begingroup$

Without having any code of yours, I could imagine that a prior export as *.pdf could help, which is imported in a 2nd step again and then you export it as *.eps file.

Export["Folder\\2ndExport.eps",Import[Export["Folder\\1stExport.pdf", YourContourPlot,  ImageSize-> {N[GoldenRatio] 550, 550}, ImageResolution -> 600]],ImageResolution -> 600];
$\endgroup$
1
  • $\begingroup$ Why do you use ImageResolution? It makes rasterization, which is not needed with OP's example plot consisting of lines and points, no shades, no gradients etc. And what is the reason of using PDF? In my understanding (and in my example in comment below question) simple Export["file.eps",plot,"EPS"] is enough to produce nice vector pisture. $\endgroup$
    – Alx
    Aug 31, 2019 at 12:34

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.