【发布时间】:2016-08-08 19:19:22
【问题描述】:
我的朋友制作了一个脚本来处理大量数据并绘制各种图,但是当他运行脚本时,根据图例,图形具有不同的颜色,而当我这样做时,所有图形都相似,并带有颜色渐变从黑色到红色! (见图)为什么会有所不同?如何获得不同颜色的图表?
带有彩色渐变图的二维图:-
figure
hold on
plot(sentar_7.created_at, sentar_7.acc_diff, '-');
plot(sentar_7.created_at, sentar_7.stand_toggle, '-');
plot(sentar_7.created_at, sentar_7.state, '-');
title('Sentar 7 acc')
xlabel('tid')
ylabel('dist [cm]')
legend('acc diff','stand toggle', 'state')
hold off
【问题讨论】: