colorbar for line plot number
显示 更早的评论
I want to use a colorbar as indicator for the number of a series of line plots.
Actual limits of the colorbar: 0 to 1
Intended limits for the colorbar: Limits from 1 to 10
Example code:
Nc = 10;
x=[0 2];
figure();
colororder(parula(Nc));
for i=1:Nc
if i==1
hold on;
end
plot(x, i*x);
end
colorbar;
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Colorbar 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
