bar graph doesn't show whole data

3 次查看(过去 30 天)
imp_2d_7_f=[2 1 2 3 6 5;0 0 2 5 4 5;1 2 3 0 1 2;3 2 2 1 5 5;1 3 2 4 4 6;0 0 2 3 6 9;...
1 1 2 3 9 9;0 1 3 5 7 3;1 1 2 3 5 23;1 1 1 2 5 31;1 1 2 2 3 5;1 2 8 12 13 46;...
0 0 1 2 4 6;0 1 1 2 6 10;0 0 1 2 4 4;1 1 2 4 5 10;0 1 3 3 6 0];
bar(imp_2d_7_f)
set(gca, 'XTickLabel',{'ALGO','ALIC','ALRT','ANKR','BRAZ','CAS1','CCJ2','CKIS','MAS1','MAW1','MCM4','NOVM','NYA1','ROTH','SCOR','TIXI','ZAMB'});
title('2D Coordinate Improvements (cutoff: 7 degree)','FontWeight','bold','FontSize',20);
xlabel('STATIONS', 'FontWeight', 'bold','FontSize',20);
ylabel('millimeter ', 'FontWeight','bold','FontSize',20)
legend('24h','12h','6h','4h','2h','1h');
set(gca,'FontWeight','bold')
set(gca,'fontsize',20)
The above codes cannot show the whole stations data. Could you specify the problem?

采纳的回答

Star Strider
Star Strider 2019-2-20
Try this:
bar(imp_2d_7_f)
xtv = get(gca, 'XTick');
xtl = {'ALGO','ALIC','ALRT','ANKR','BRAZ','CAS1','CCJ2','CKIS','MAS1','MAW1','MCM4','NOVM','NYA1','ROTH','SCOR','TIXI','ZAMB'};
xtnew = linspace(1, numel(xtl), numel(xtl));
set(gca, 'XTick',xtnew, 'XTickLabel',xtl, 'XTickLabelRotation',90);
...

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by