How to have labels stick to axis?
15 ビュー (過去 30 日間)
古いコメントを表示

On 3D kind of graphics, the labels are horizontal, like attached.
Is it possible to make the labels rotated parallel to axis?
Thanks.
0 件のコメント
回答 (1 件)
dpb
2016 年 11 月 29 日
編集済み: dpb
2016 年 12 月 1 日
xlabel('X Label','rotation', 30)
zlabel('Z Label','rotation',-30)
Look at the Text Properties section for details of all available properties.
ADDENDUM
Re: topic of making "stick" with axes, that's a toughie I think....not sure how to even determine the actual angle of the axes projection--I presume is related to the 'CameraPositionX' values, but there's nothing builtin from which one can retrieve the angle needed to make the labels precisely parallel with the axes as rendered and certainly not dynamically.
This would be good enhancement-request fodder methinks...
0 件のコメント
参考
カテゴリ
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!