一般情况下,label是可以通过属性设置其旋转的,但是,这并不是我们要旋转的东西,我们想旋转的是ticklabel,而ticklabel在axis属性对话框中通过设置style只能设置FontSize和FontWeight等属性,并不能旋转。 我通过一个函数实现ticklabel的旋转How do I use this function?x = round(rand(53)*10);h=bar(x1'group');set(gca'xticklabels'{'benchmark1''benchmark2''benchmark3''benchmark4''benchmark5'});h = gca;th=rotateticklabel(h 45);