How to have labels stick to axis?
28 views (last 30 days)
Show older comments
On 3D kind of graphics, the labels are horizontal, like attached.
Is it possible to make the labels rotated parallel to axis?
dpb on 29 Nov 2016
Edited: dpb on 1 Dec 2016
xlabel('X Label','rotation', 30)
Look at the Text Properties section for details of all available properties.
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...
Find more on Specifying Target for Graphics Output in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!