0 Downloads
Updated 01 Jul 2008
No License
Just an y-axis version of the very useful xticklabel_rotate function
Roland Bogers (2019). yticklabel_rotate (https://www.mathworks.com/matlabcentral/fileexchange/20529-yticklabel_rotate), MATLAB Central File Exchange. Retrieved .
Inspired by: XTICKLABEL_ROTATE
Create scripts with code, output, and formatted text in a single executable document.
SepehrX (view profile)
You need to change your function definition to hText = yticklabel_rotate(YTick,rot,yTickLabels,varargin).
JohnGalt (view profile)
I too had the labels on the figure... Fixed it by changing the line:
"x = yLabelPosition(1)+1;"
to
"x = yLabelPosition(1);"
John (view profile)
Same as above...The yaxis labels are placed in the middle of the figure instead of along the left-hand side.
Ivan (view profile)
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.