How to make graph originally generated by stata look good? [closed]

I use stata to get an eps graph, then use pdfLaTeX to get a pdf file.

\documentclass{article}
\usepackage{graphics}
\begin{document}
\centering
\includegraphics{test}
\end{document}

When I zoom in the graph, we can see an ugly diamond. How to solve it?

-

closed as off topic by yo', egreg, Torbjørn T., Qrrbrbirlbel, lockstepNov 5 '12 at 17:09

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

How does the diamond look like in the eps file? –  Marco Nov 5 '12 at 10:34
It is the same as the above figure. I insert the eps file into word, then use the pdf-maker to generate pdf file, thus the figure looks good. –  Pig Cry Nov 5 '12 at 11:20
What do you expect pdftex to do? It does not change your figure. This is expected behaviour. If you want a “proper” diamond, correct it with the application you used to generate the file. If you just want to convert EPS to PDF I would suggest to use ghostscript. The processing is faster and it's easier to use, especially if you use one of the wrappers like ps2pdf. –  Marco Nov 5 '12 at 12:01

This is more a question about Stata than it is about LaTeX. You use Stata to generate the graph and pdfLaTeX does not change it. If you open the graph in a viewer that is capable of displaying EPS files (e.g. Ghostview) you will find that the missing edges are already in the EPS.

In Stata there is not much you can do about it, except for explicitly choosing a different marker symbol with the msymbol option, e.g.

sysuse auto
scatter mpg weight if foreign, msymbol(O)
graph export filename, as(eps) preview(off) replace