Be the first to rate this file! 19 Downloads (last 30 days) File Size: 1.7 KB File ID: #32054
image thumbnail

Rotate and alternate tick labels on any Xaxis (top or bottom)

by

 

04 Jul 2011 (Updated )

Rotate tick labels and alternate them for reading clarity

| Watch this File

File Information
Description

Rotate tick labels by any degree and alternate them upon and below the X axis for reading clarity, in case of closeby ticks.

Works for top or bottom X axis.

Input: axes handle, rotation in degree, position of the X axis ('top' or 'bottom')

Warning:
1) In case of long tick labels crossing the axis, values u and l in the inputs have to be changed.
2) In case of printing, the option 'middle' instead of 'cap' for the vertical alignment looks better.

Acknowledgements

Rotate Tick Label inspired this file.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
11 Apr 2013 SKOCH

I get the same error message..

11 Oct 2012 Lei Cheng

??? Attempted to access b(6); index out of bounds because numel(b)=5.

Error in ==> rotatetl at 55
b2(k/2+.5)=b(k+1);

Updates
05 Jul 2011

Clarifications

Contact us