Multiple Legends Multiple Colours
1 次查看(过去 30 天)
显示 更早的评论
See code below. I want to label each colomn in a and b in the plot. The lines from variable a should have same colour theme variations and the line in b should have same colour theme variations....please please help me. dark yellow, yellow, gold...and so on.
a=rand(10,5);
b=rand(10,5);
c=rand(10,1);
d=rand(10,1);
hold(app.UIAxes,'on')
plot(app.UIAxes,a,c);
plot(app.UIAxes,b,c);
plot(app.UIAxes,d,c,'-b');
hold(app.UIAxes,'off')
legend(app.UIAxes)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!