Align axes labels in 3D plot

버전 1.3.0.0 (2.21 KB) 작성자: Matthew Arthington
Align the x, y and z labels of the current axes with the x, y and z axes for 3D plots.
다운로드 수: 6.8K
업데이트 날짜: 2012/1/30

라이선스 보기

편집자 메모: 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.

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

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

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

1.1.0.0

Added the conditions under which the function correctly works.

1.0.0.0