File Exchange

image thumbnail

yticklabel_rotate

version 1.0 (7.75 KB) by

A y-axis version of the excellent xticklabel_rotate

3 Downloads

Updated

No License

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

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

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

Ivan (view profile)

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
MATLAB 6.5 (R13)
Acknowledgements

Inspired by: XTICKLABEL_ROTATE

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

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video