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!