回复: 谁会绘图 数值-时间曲线?
兄弟不才,有个这种比较类似的程序,用到句柄。
subplot(2,2,1),plot(array1(:,1),array1(:,2),array1(:,3),array1(:,4),array1(:,5),array1(:,6),array1(:,7),array1(:,8),array1(:,9),array1(:,10))
legend('11015','11016','11017','11018','11019')
title(fortitle,'fontsize',18);
xlabel('Time (Hour)','fontsize',18);
ylabel('Temperature (Centigrade degree)','fontsize',18);
spac=floor(length(array1)/5);
set(gca,'XTick',array1(1:spac:end,1))
set(gca,'fontsize',18)
datetick('x','HH:MM','keepticks');
|