【发布时间】:2018-07-22 19:45:49
【问题描述】:
我想从0 to 325 设置此图中 X 轴的限制。当我使用xlim 设置限制时(在代码中注释)。它不能正常工作。当我使用xlim 时,情节的整个结构都会发生变化。任何帮助将不胜感激。
figure
imagesc(transpose(all_area_for_visual));
colormap("jet")
colorbar('Ticks',0:3,'TickLabels',{'Home ','Field','Bad house','Good house'})
xlabel('Time (min)')
tickLocs = round(linspace(1,length(final_plot_mat_missing_part(2:end,1)),8));
timeVector = final_plot_mat_missing_part(2:end,1);
timeForTicks = (timeVector(tickLocs))./60;
xticks(tickLocs);
xticklabels(timeForTicks);
%xlim([0 325]);
ylabel('Car identity')
yticks(1:length(Ucolumnnames_fpm))
yticklabels([Ucolumnnames_fpm(1,:)])
【问题讨论】:
标签: matlab plot graph matlab-figure axis