XTICKLABEL_ROTATE

버전 1.4.0.0 (4.32 KB) 작성자: Brian Katz
Rotate XTickLabel to better accommodate long labels and text labels.
다운로드 수: 47.4K
업데이트 날짜: 2021/4/19

라이선스 보기

편집자 메모: This file was a File Exchange Pick of the Week

A modified version of XTICKLABEL_ROTATE90, this version allows for arbitrary angle rotation and most importantly the use of text labels. In addition, an attempt is made to adjust the size and placement of the axis and xlabel to accommodate the new labels.
Example : %Use text labels rotated 45° without tex interpreter
boxplot(randn(5,5),1)
xticklabel_rotate([1:5],45,{'label_1','label_2','label_3','label_4','label_5'},'interpreter','none')

인용 양식

Brian Katz (2024). XTICKLABEL_ROTATE (https://www.mathworks.com/matlabcentral/fileexchange/3486-xticklabel_rotate), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
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.4.0.0

Modified to account for conflict with C:\Program Files\MATLAB\R2016b\toolbox\matlab\graph3d\xticklabels.m

1.3.0.0

2014 : Allow for multiline labels

1.2.0.0

Rev.2010. Revisions made to improve functionality in response to various user recommendations.

1.1.0.0

Use suggested modifications have been integrated. The current version now support TOP xlabels. In addition, the degree of resizing of the axis has been reduced.

1.0.0.0

Following user comment, modified to allow for additional parameter options for existing XTicks. Subsequently modified to allow for exisiting XTickLabel being defined as cell array (before rotation).