Does not seem to correctly handle when latitude or longitude is negative. i.e. West and South hemispheres.
Using the variable c assigned on line 138, c(12) designates longitude hemisphere as 'E' or 'W' and c(20) latitude hemisphere as 'N' or 'S'.
The script does not work in the sense that often the labels are not alligned, at least when saving a graph or when scaling a graph. rotateXLabels.m in http://www.mathworks.com/matlabcentral/fileexchange/27812-rotate-x-axis-tick-labels/all_files works fine for us instead.
15 Jan 2014
Rotate XTickLabel to better accommodate long labels and text labels.