# Prettier line plots with markers. in matlab

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.
Example
figure('position',[200,200,800,600])
hold on
set(gca,'xlim',[-3.2,3.2],'ylim',[-3,3])
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);