Section 6.4 Plot Properties
>> plot(x,y,'line specifiers','PropertyName','PropertyValue')
Pairs of
'PropertyName'
and 'PropertyValues'
are used to control the size and thickness of the line and markers.Property Name | Property Value |
linewidth |
width of line, in points (0.5 default) |
markersize |
size of marker, in points |
markeredgecolor |
color of marker from specifier table |
markerfacecolor |
color of filled marker from table |
linestyle |
line style specifier from table |
color |
color of line from table |
marker |
marker specifier from table |
>> plot(x,y,'-mo', 'linewidth',2, 'markersize',8, 'markeredgecolor','g',...
'markerfacecolor','y')