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

Ricky

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Ricky
Updated File Comments Rating
07 Apr 2009 Rotate Tick Label ROTATETICKLABEL rotates tick labels. Author: Andrew Bliss

put in the following "if statement" to check if there are yticks enabled.

if numel(c) > 0
if rot<180
th=text(b,repmat(c(1)-.1*(c(2)-c(1)),length(b),1),a,'HorizontalAlignment','right','rotation',rot);
else
th=text(b,repmat(c(1)-.1*(c(2)-c(1)),length(b),1),a,'HorizontalAlignment','left','rotation',rot);
end
else
if rot<180
th=text(b,repmat(-.1,length(b),1),a,'HorizontalAlignment','right','rotation',rot,'fontsize',16);
else
th=text(b,repmat(-.1,length(b),1),a,'HorizontalAlignment','left','rotation',rot,'fontsize',16);
end
end

Contact us