Halcom 发表于 2017-3-2 21:48:57

单独设置y轴显示范围,设置x轴为显示时间

clc,clear,close all
warning off
format longG
tic
% web('halcom.cn') % 参考网站
% 总负荷
Psum = -5;
figure(1),plot(Psum,'b.-');hold on
% 电负荷
Pt = ;
plot(Pt,'m.-');
% 冷负荷
PD = ;
plot(PD,'g*-');
% 热负荷
WD = ;
plot(WD,'rs-');
grid on;axis tight;
xlabel('时刻');ylabel('负荷/kW');
set(gcf,'position',)
set(gca,'XTickLabel',{'1:00','5:00','10:00','15:00','20:00','24:00'},'XTick',)
set(gca,'ylim',);% 设置y轴显示范围
hold off;
页: [1]
查看完整版本: 单独设置y轴显示范围,设置x轴为显示时间