MATLAB: ‘–‘ linestyle renders poorly in PDFs (but fine onscreen)

adobeplotprint

When I make a plot using dash-like linestyles and then print the plot to a PDF, the dashes are so small as to be invisible. For example:
x=0:0.1:10;
y=sin(x);
plot(x, y, 'Linestyle', '--');
This looks good onscreen, but when I print to a pdf there are so many dashed per unit length that the line looks continuous. Oddly if I print directly to a physical printer, the dashes look fine.
Any idea whether this is Adobe's problem, or MATLAB's? Or whether I can do anything about it?

Best Answer

The PDF is created by using an intermediate EPS or PS file. The conversion of dashed and dotted lines from Matlab to EPS is poor. Solutions:
Dear TMW: This problem is very old and very obvious. The solution looks very straight. So please update the EPS export accordingly. And to reduce the traffic on MATLAB Answers, buy export_fig and include it in the Matlab toolboxes, please.