%% Set Contour Label Properties
% Set the font size of the labels to 15 points and set the color to red using Name,Value pair arguments.

[x,y,z] = peaks;
[C,h] = contour(x,y,z);
clabel(C,h,'FontSize',15,'Color','red')

%
% Set additional properties by reissuing the clabel command. For example, set the font weight to bold and change the color to blue.

clabel(C,h,'FontWeight','bold','Color','blue')

%
% Set the font size back to the default size using the 'default' keyword.

clabel(C,h,'FontSize','default')

% Copyright 2015 The MathWorks, Inc.