How to shade an area in a multiple plot figure?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using "addaxis" package to plot more than 2 sets of data of varying magnitudes in a single plot and i want one of the areas under the curve to be shaded/filled. How can i do that? Is there another way to do this? Here is what ive tried currently:
figure
plot(pems_31(:,1),pems_31(:,18),'b','linewidth',1)
addaxis(pems_31(:,1),pems_31(:,12),'r','linewidth',1)
addaxis(pems_31(:,1),pems_31(:,22),[0 120],'k','linewidth',1)
fill(pems_31(:,1),pems_31(:,22),'g')
xlabel('\bf Time rural [s]')
addaxislabel(2,'PN ')
addaxislabel(1,'\bf Engine Speed [RPM]')
addaxislabel(3,'\bf Velocity [km/h]')
example plot i need:
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!