Xticklabel rotation in R2016
1 次查看(过去 30 天)
显示 更早的评论
Hello Dears,
I'm using a Matlab version R2016. and i wanted to rotate the xticklabels by 45 degree. The function workes in some new version of Matlab but not for me.
The example code is attached below. Any one with some trick to do this please have a look at.
boxplot(randn(5,5),1)
set(gca,'xticklabels',{'label_1','label_2','label_3','label_4','label_5'})
xtickangle(45)
cheers
2 个评论
Alex Mcaulley
2020-2-24
编辑:Alex Mcaulley
2020-2-24
Reading the documentation xtickangle function was introduced in R2016b. Try with
set(gca,'XTickLabelRotation',45)
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interaction Control 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!