I have a problem with the plots I'm using for an article. After a lot of search on the web, I still haven't found a solution, so I'll try to describe my problem as clear as possible:
I'm plotting two parameters and have added their standard deviations with the fill-function. Because I don't want to use colors, I want to use different shadings for the space between the standard deviations. Until now the problem I have, is that I'm unable to specify, that the shading is consistent between the standard deviation of one parameter as you can see in the picture. I would like to have is one type of shading between the doted lines and another type of shading between the solid lines.
z = linspace(1,101,101)';
f=figure;
set(f,'Units', 'normalized', 'outerposition', [0 0 1 1]);
fill( [z' fliplr(z')], [Parameter1_plus_std' fliplr(Parameter1_minus_std')], 'k');
alpha(0.4);
hold on
plot(normal,Parameter1_mean,'k','LineWidth',2);
fill( [z' fliplr(z')], [Parameter2_plus_std' fliplr(Parameter2_minus_std')], 'k--');
alpha(0.2);
hold on
plot(Parameter2_mean,'k--','LineWidth',2);
In the picture, you can see that the darker shading is between the doted and the solid line, where it should be between the doted line!
I would be thankful for any thoughts on this!