I want to plot colorful *.eps files in the pdf file.

However, colorful figures have white meshes in the pdf file that the figures in the ps file do not have.

Can I plot the colorful figures in the pdf file as clear as in the ps file?

I compile the text file into pdf by tex->dvi->ps->pdf with following commands.

latex A.tex
dvips A.dvi
ps2pdf -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode A.ps

figure in the ps file figure in the pdf file

closed as off-topic by Reinstate Monica - M. Schröder, Thorsten, Mensch, barbara beeton, Zarko May 5 '16 at 17:28

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Reinstate Monica - M. Schröder, Thorsten, Mensch, barbara beeton, Zarko
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to TeX.SX! A tip: If you indent lines by 4 spaces or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with {} on it). – ebosi May 3 '16 at 14:22
  • 2
    The white lines are probably a result of the conversion from vector to raster for display by your PDF viewer. They will not be present in a printed copy. Also, if you convert to a raster format, they will not be visible. – James May 3 '16 at 14:24
  • Also see tex.stackexchange.com/questions/238547/… – James May 3 '16 at 14:28
  • What pdf viewer are you using? I usually have the same problem with Preview but with acrobat it looks fine. – user36296 May 3 '16 at 14:43
  • Another thing for testing such issues, is to zoom in. Then you'll often know if it is an issue with the previewer. – daleif May 3 '16 at 14:49

I've played with the EPS file you linked in the comment above. As you said, after conversion the white grid is showing up in the PDF and even in the PNG after using

convert -density 300x300 branin.eps branin.png

The only thing I know to get rid of the grid is to convert to a very high resolution PNG and then scale the PNG down. The white grid gets averaged into the surrounding colors during the scaling. These commands might take a few minutes depending on your processor speed. Depending on your operating system, you might need to replace % with %% in the second command.

convert -density 2400x2400 branin.eps braninTemp.png
convert -scale 10% braninTemp.png branin.png

Of course the downside of this process is that you are left with a raster image instead of a vector image. Here's a view of the resulting branin.png.

enter image description here

Another option that you apparently are aware of is to take a screen shot of the EPS file in whatever viewer you used to generate the image in your question.

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