How to have labels stick to axis?

22 次查看(过去 30 天)
John
John 2016-11-29
编辑: dpb 2016-12-1
On 3D kind of graphics, the labels are horizontal, like attached.
Is it possible to make the labels rotated parallel to axis?
Thanks.

回答(1 个)

dpb
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...

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by