how to change the color of a 2-D line on plot graph
조회 수: 5 (최근 30일)
이전 댓글 표시
x=(aug_fires(:,1)) y=(aug_fires(:,2)) r=(aug_fires(:,3)) a=plot(aug_fires(:,1),aug_fires(:,2)) yyaxis right plot(x,r) % i have 2 lines on one graph one showing number of fires the other showing acres burned i want to change the colors of both the lines
댓글 수: 0
답변 (1개)
madhan ravi
2018년 11월 1일
편집: madhan ravi
2018년 11월 1일
plot(x,r,'r') %plots red line
plot(x,r,'b') %plots blue line
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!