%% Adjust Baseline Value of Area Plot
% Create matrix Y. Then display the values of Y in an area plot with a baseline value of -4. area fills the areas specified by the curves and the line y = -4.

Y = [1 5 3; 3 2 7; 1 5 3; 2 6 1];
basevalue = -4;
area(Y,basevalue)

% Copyright 2020 The MathWorks, Inc.