View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

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

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

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



04 Jul 2011 (Updated )

Rotate tick labels and alternate them for reading clarity

| Watch this File

File Information

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')

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.


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

SKOCH (view profile)

I get the same error message..

Comment only
11 Oct 2012 Lei Cheng

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

Error in ==> rotatetl at 55

Comment only
05 Jul 2011 1.1


Contact us