%% Specify Color of a Bar Chart
% Create a red bar chart by calling the bar function and specifying the optional color argument as 'red'. Return the bar object as b, so you can customize other aspects of the chart later.

b = bar(1:10,'red');

%
% Now, change the bar fill color and outline color to light blue by setting the FaceColor and EdgeColor properties to the hexadecimal color code,'#80B3FF'.
% Before R2019a, specify an RGB triplet instead of a hexadecimal color code. For example, b.FaceColor = [0.5 0.7 1].

b.FaceColor = '#80B3FF';
b.EdgeColor = '#80B3FF';

% Copyright 2020 The MathWorks, Inc.