Hello,
I have the following code to plot my observed readings versus my modelled readings and the code works fine but does not clearly show regions where my modelled data is greater than observed data.
% Create figure
figure1 = figure;XData = mod1_2001_2014(x,1)'; YData1 = mod1_2001_2014(x,5)'; YData2 = mod1_2001_2014(x,4)';% Plot with fill
X = [XData fliplr(XData)];Y = [YData1 fliplr(YData2)];fill(X,Y,[0.678431391716003 0.921568632125854 1]);ylim([0 max(YData2)+3])
I was wondering if there is a way to have this so that when the YData2 > YData1 the fill is red and when YData1 > YData2, the fill is the colour it is now.
Any ideas? Thank you!
Best Answer