How to put text in the axis for each point in the plot rotated?

I am using
plot(0:length(x)-1,x)
set(gca,'XTick',0:length(words)-1,'XTickLabel',cellstr(words));
to put some text for each point in the plot on the abscissa but since they are too much is not possible to read them when exporting the figure as an image.
I was thinking to show them, still on the abscissa, but rotated so that they do not overlap (or at least they overlap less). Is there a way? Thanks in advance.

2 Comments

plot(0:length(x),x) should fail, because 0:length(x) has one elements more than x.
ok sorry I corrected it. It was understandable by the way.

Sign in to comment.

More Answers (0)

Asked:

on 15 Nov 2013

Commented:

on 20 Nov 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!