File Exchange

image thumbnail

yticklabel_rotate

version 1.0.0.0 (2.65 KB) by Roland Bogers
A y-axis version of the excellent xticklabel_rotate

0 Downloads

Updated 01 Jul 2008

No License

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

Cite As

Roland Bogers (2019). yticklabel_rotate (https://www.mathworks.com/matlabcentral/fileexchange/20529-yticklabel_rotate), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

SepehrX

You need to change your function definition to hText = yticklabel_rotate(YTick,rot,yTickLabels,varargin).

JohnGalt

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

John

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

Ivan

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.

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: XTICKLABEL_ROTATE

Inspired: XYrotalabel - rotate X-axis and Y-axis labels