How to put text in the axis for each point in the plot rotated?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Francesco
am 15 Nov. 2013
Kommentiert: Francesco
am 20 Nov. 2013
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 Kommentare
Jan
am 15 Nov. 2013
plot(0:length(x),x) should fail, because 0:length(x) has one elements more than x.
Akzeptierte Antwort
Jan
am 15 Nov. 2013
Perhaps you want some of these solutions:
- http://www.mathworks.com/matlabcentral/fileexchange/27812-rotate-x-axis-tick-labels
- http://www.mathworks.com/matlabcentral/fileexchange/16003-tick2text-create-easy-to-customize-tick-labels
- http://www.mathworks.com/matlabcentral/fileexchange/32054-rotate-and-alternate-tick-labels-on-any-xaxis-top-or-bottom
- http://www.mathworks.com/matlabcentral/fileexchange/3486-xticklabelrotate
- http://www.mathworks.com/matlabcentral/fileexchange/8722-rotate-tick-label
any many more. You see, searching in the FileExchange is a good idea.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!