1

I have plotted a colored figure using contourplot. What is the best way to save it so that its quality becomes higher? I want it use in Latex.

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
sara nj
  • 311
  • 1
  • 6

1 Answers1

3

If you use pdflatex, I recommend:

  • PDF for line art
  • PNG when PDF doesn't produce an acceptable result
  • JPEG for photos

Use Export instead of Save Graphics As.

plot = ContourPlot[x^2 + y^2, {x, -1, 1}, {y, -1, 1}]

First try

Export["plot.pdf", plot]

If the result is not acceptable, try

Export["plot.png", plot, ImageResolution -> 4*72]

The default image resolution is 72 dpi. Use 4*72 to get a four times larger image. Find the correct size for your needs.

See also:

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263