Rank: 34656 based on 0 downloads (last 30 days) and 0 file submitted
photo

Miranda

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Miranda
Updated File Comments Rating
14 Feb 2011 Rotate X-axis tick labels Rotate x-tick labels to any angle, preserving font settings and coping with resize, zoom, pan etc Author: Ben Tordoff

Hi Ben,
Thank you for this nice program. One disadvantage is that the labels are very close to the x-axes, especially if I choose an angle of -90 or 90. I thought of including an extra space in the labels:
if 0 <= angle && angle < 180
labels = cellfun(@(x) horzcat(x,' '),labels,'UniformOutput', false);
else
labels = cellfun(@(x) horzcat(' ',x),labels,'UniformOutput', false);
end
Maybe an extra if-expression is needed for the labels on XAxisLocation top...
Miranda

Contact us