题
我有问题有关Matlab Bar Plots。 这是我的脚本:
Y = [0.0608 0.0018
0.383 0.0146
0.2162 0.0106
0.1212 0.0067
0.2226 0.0771
0.1507 0.008 ];
bar(Y,'stack')
grid on
set(gca,'XTickLabel',{'200% method','Alt gen method', 'Energy method','PASS 2050','Power bonus method','Exergy method'});
colormap summer
.
是否可以在两行中将名称设置为x轴? 例如,在第一行中的“200%”和“方法”中的第二行中的“方法”,而不是(200%的方法)在一行中,为其他行等。
当我增加前尺寸时,我的名字互相重叠。
解决方案
您可以尝试使用这个(fix_xticklabels)。
其他提示
尝试
'1st line \n2nd line'
.
....
不隶属于 StackOverflow