%% Specify Different Properties For Each Bar Series
% Load the data set, count.dat, that returns a three-column matrix, count. Define y as the first four rows of count.

load count.dat
y = count(1:4,:);

%
% Create a horizontal bar graph of y using a dotted line style. Return the three bar series handles. barh creates a bar series for each column in y.

h = barh(y,'LineStyle',':');

%
% Use the handles in h to set different property values for each bar series. Change the face color of the first bar series to cyan by setting the FaceColor property to cyan. Set the face color for the third bar series using an RGB triplet.
% Starting in R2014b, you can use dot notation to set properties. If you are using an earlier release, use the set function instead.

h(1).FaceColor = 'cyan';
h(3).FaceColor = [0,0.5,0.5];

% Copyright 2015 The MathWorks, Inc.