The following Matlab project contains the source code and Matlab examples used for prettier line plots with markers. .
PRETTYPLOT works just like PLOT, but avoids the line and markers being on top of each other. Instead, the line joins the markers without touching them.
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
h = prettyplot(x,y,'-+b',x,2*cos(x),'-xr','LineWidth',2,'MarkerSize',8);