No BSD License  

Highlights from
yticklabel_rotate

3.5

3.5 | 2 ratings Rate this file 9 Downloads (last 30 days) File Size: 7.75 KB File ID: #20529

yticklabel_rotate

by Roland Bogers

 

01 Jul 2008 (Updated 01 Jul 2008)

A y-axis version of the excellent xticklabel_rotate

| Watch this File

File Information
Description

Just an y-axis version of the very useful xticklabel_rotate function

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
XTICKLABEL_ROTATE

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
01 Jul 2008 John D'Errico

I tried this as a test.

plot(rand(10))
yticklabel_rotate

It puts the labels on top of the figure, not to the left of the figure. As well, it dramatically changes the shape of the plot axes for no good apparent reason.

The help seems reasonable, but the above appears to be a significant bug.

18 Feb 2009 Ivan  
13 May 2010 John

Same as above...The yaxis labels are placed in the middle of the figure instead of along the left-hand side.

27 Sep 2011 JohnGalt

I too had the labels on the figure... Fixed it by changing the line:
"x = yLabelPosition(1)+1;"
to
"x = yLabelPosition(1);"

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Roland Bogers 22 Oct 2008 10:08:05
customization Roland Bogers 22 Oct 2008 10:08:05
ytick Roland Bogers 22 Oct 2008 10:08:06
graphics Roland Bogers 22 Oct 2008 10:08:06
rotate Roland Bogers 22 Oct 2008 10:08:06
label Roland Bogers 22 Oct 2008 10:08:06
rotate Nisal Ratnayake 16 Feb 2012 19:40:43

Contact us at files@mathworks.com