image thumbnail

Align axes labels in 3D plot

version 1.3.0.0 (2.21 KB) by Matthew Arthington
Align the x, y and z labels of the current axes with the x, y and z axes for 3D plots.

6.3K Downloads

Updated 30 Jan 2012

View License

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

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.

Cite As

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

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: phymhan/matlab-axis-label-alignment

Community Treasure Hunt

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

Start Hunting!