|
画图的批量标注与坐标刻度修改
x=6:6:66;
y=[39.5 38 39 39.2 38 37.5 37 36.8 37 36.8 36.7];
plot(x,y)
grid on
axis([0 72 36 40])
xticks([0,x]); %刻度修改
xla=0:6:18;
lab=[xla xla xla xla];
xticklabels(num2cell(lab)); %刻度加标签
text(x,y,num2cell(y)) %对指定点批量加标注
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-22 22:24
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社