Label Rotation in MATLAB 2014
6 ビュー (過去 30 日間)
古いコメントを表示
plot(1:3);
set(gca, 'XTICK', 1:3);
set(gca, 'XTICKLABEL', {'aaa', 'bbb', 'ccc'});
set(gca, 'Rotation', 45);
However this gives:
Error using hg.axes/set
The name 'Rotation' is not an accessible property for an instance of class 'axes'.
Have I misunderstood?
2 件のコメント
回答 (2 件)
Sean de Wolski
2014 年 9 月 15 日
In R2014a, you need to replace the tick labels with text which can be rotated. here are a few utilities to help:
3 件のコメント
Sean de Wolski
2014 年 9 月 15 日
The above is R2014a.
R2014b has not shipped and the R2014b prerelease's features are confidential under NDA.
Steven Lord
2017 年 2 月 15 日
Now that release R2014b has shipped, I can confirm that tick label rotation was added in that release. See the "Other enhancements and new customization options" paragraph in the "New Visual Look" section of this documentation page.
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!