%% Modify Text Label for Pie Chart
% Create a labeled pie chart, and then modify the color and font size of the text labels.

X = 1:3;
labels = {'Taxes','Expenses','Profit'};
p = pie(X,labels)

%
% Get the text object for the label 'Profit'. Change its color and font size. Use dot notation to set properties.

t = p(6);
t.BackgroundColor = 'cyan';
t.EdgeColor = 'red';
t.FontSize = 14;

% Copyright 2015 The MathWorks, Inc.