Shaded error bar on stair plot

조회 수: 14 (최근 30일)
Paschal OHare
Paschal OHare 2016년 12월 13일
편집: Paschal OHare 2016년 12월 16일
I'm trying to replicate a shaded error bar on a stair plot (attached example)
here is some example data I'm using:
x = (1:1:12)';
y = 100*rand(12,1);
yerr = (3+3)*rand(12,1);
figure
stairs(x,y,'b');
hold on;
errorbar(x,y,yerr,'.');
I've tried several shaded error bar functions from FileExchange with no luck (i.e. https://se.mathworks.com/matlabcentral/fileexchange/26311-raacampbell-shadederrorbar)
Thanks
Example:
  댓글 수: 1
Paschal OHare
Paschal OHare 2016년 12월 16일
편집: Paschal OHare 2016년 12월 16일
I've post-edited the plot in a vector editing program to get the desired effect. This has solved my problem for now. Should I close the question?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by