1
$\begingroup$

I saved the following graph from Mathematica

enter image description here

The graph is very smudgy and it looks very bad when I embedded it in the TeX file. What are more efficient ways to neatly present graphical outputs from Mathematica in TeX etc.

I can provide the codes required to generate the graphs on request.

$\endgroup$
  • 1
    $\begingroup$ "The graph is very smudgy" - how exactly did you save the picture and transfer it to your $\TeX$ document? $\endgroup$ – J. M.'s technical difficulties Aug 8 '16 at 9:06
  • $\begingroup$ Relevant: 1542 $\endgroup$ – e.doroskevic Aug 8 '16 at 9:09
  • 5
    $\begingroup$ jpeg is a lossy format, it is better to export in a lossless format like png if you specifically want to export in image format. $\endgroup$ – Feyre Aug 8 '16 at 9:14
  • 2
    $\begingroup$ I often do this for journal publications. The journal requirement is eps format. The eps created by Mma is, however, not the same as the standard one. For this reason I save the image in pdf format and then with the CorelDraw convert the pdf into eps. The result is the image quality good enough for Physical Review. $\endgroup$ – Alexei Boulbitch Aug 8 '16 at 9:29
  • 1
    $\begingroup$ @JunaidAftab try Gimp (which is free) to convert the PDF to EPS ... lakewoodsound.com/misc/pdf2eps-gimp.pdf $\endgroup$ – Young Aug 8 '16 at 13:09
1
$\begingroup$

The default value of CompressionLevel is 0.25. Decreasing this will help to give better jpegs. The other thing you can do is to set the ImageSize larger.

Try:

Export[NotebookDirectory[] <> "exportTrial.jpg",  **YOUR_DATA**, "JPG", "CompressionLevel"->0]

From a similar question: Quality control when exporting graphics into JPG

| improve this answer | |
$\endgroup$

Your Answer

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

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