Align axes labels in 3D plot
by Matthew Arthington
02 May 2010
(Updated 30 Jan 2012)
Align the x, y and z labels of the current axes with the x, y and z axes for 3D plots.
|
Watch this File
|
| File Information |
| Description |
If the current axes have been rotated away from the X-Y view, this function will calculate the angles of the current x, y and z axes with respect to horizontal. These angles are used to rotate the current x, y and z axes labels to align them with their respective directions.
This only works for equal sized axes (axis equal) and orthographic projection. |
| MATLAB release |
MATLAB 7.11 (2010b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 17 May 2010 |
Added the conditions under which the function correctly works. |
| 14 Jun 2011 |
Updated to allow Camera Roll to be used and still work out the angles correctly, i.e. allow a change in CameraUpVector axes property. The z axis label will now be rotated too, to align it with its axis direction if the camera has been rolled. |
| 30 Jan 2012 |
Fixed typos in help and warning. Updated help with examples including its use as a callback after each rotate3d event. |
|
Contact us at files@mathworks.com