From: Adam on
Hello -

When I use a dotted line for a plot in MATLAB, it looks fine in the display.

However, if I save the file as a .pdf or .eps, and then open it outside of MATLAB, the dots are so small and the space between each dot is so large that the line can hardly be seen.

I have two questions:

1. Why is the exported file so drastically different from what I see in MATLAB?

2. Is there any way to make the dots larger and/or the spacing smaller?

Thanks in advance for your help!

Adam
From: Jan Simon on
Dear Adam!

> When I use a dotted line for a plot in MATLAB, it looks fine in the display.
>
> However, if I save the file as a .pdf or .eps, and then open it outside of MATLAB, the dots are so small and the space between each dot is so large that the line can hardly be seen.
>
> I have two questions:
> 1. Why is the exported file so drastically different from what I see in MATLAB?
> 2. Is there any way to make the dots larger and/or the spacing smaller?

To 1:
It **is** not different, it just **looks** different (sorry for the buddhistic answer). The distance of the dots is related to the resolution. On the screen, the resolution if 72 or 90 or 128... dpi (depending on your monitor), but the view printed to the PDF has usually a printable resolution of 300 dpi. In addition the PDF is displayed on the screen again, perhaps it is even scaled...

To 2:
Go to the FEX (http://www.mathworks.com/matlabcentral/fileexchange) and search for "EPS fix dotted".

Good luck, Jan