Align axes labels in 3D plot

Align the x, y and z labels of the current axes with the x, y and z axes for 3D plots.

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Matthew Arthington (2026). Align axes labels in 3D plot (https://www.mathworks.com/matlabcentral/fileexchange/27450-align-axes-labels-in-3d-plot), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: phymhan/matlab-axis-label-alignment

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0

Fixed typos in help and warning. Updated help with examples including its use as a callback after each rotate3d event.

Download
1.2.0

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.

Download
1.1.0

Added the conditions under which the function correctly works.

Download
1.0.0

Download