%% Plot Multiple Pie Charts
% Create two vectors of data and plot and label each one in its own pie chart.

X = [0.2 0.4 0.4];
labels = {'Taxes','Expenses','Profit'};
ax1 = subplot(1,2,1);
pie(ax1,X,labels)
title(ax1,'2012');

Y = [0.24 0.46 0.3];
ax2 = subplot(1,2,2);
pie(ax2,Y,labels)
title(ax2,'2013');

% Copyright 2015 The MathWorks, Inc.