Shading the area between curves
이전 댓글 표시
Hello,
I've reproduced a plot for my university dissertation, and I need to know how to fill it. I've attached an image of what I'm trying to do. The area between the curves a more transparent colour than a standard block colour.
This is the code I've used:
plot(chain2018_09,ele2018_09,'color',[0 0.4470 0.7410],'linewidth',1.25)
hold on
plot(chain2014_09,ele2014_09,'color',[0.4660 0.6740 0.1880],'linewidth',1.25)
plot(chain2011_09,ele2011_09,'color',[0.8500 0.3250 0.0980],'linewidth',1.25)
title('6b00009')
grid on
xlabel ('Chainage (m)')
ylabel ('Elevation (m)')
axis([-250 400 -3 7])
xticks(-250:50:400);
yticks(-3:1:7);
I'm not an expert really, I'm using matlab to produce high quality plots for my dissertation. So apologies if its a bit long winded.
I hope anyone can help.
답변 (1개)
darova
2019년 4월 27일
1 개 추천
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!