필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Francesco
Francesco 2013년 11월 15일
댓글: Francesco 2013년 11월 20일
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
Jan
Jan 2013년 11월 15일
plot(0:length(x),x) should fail, because 0:length(x) has one elements more than x.
Francesco
Francesco 2013년 11월 20일
ok sorry I corrected it. It was understandable by the way.

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2013년 11월 15일
  댓글 수: 1
Francesco
Francesco 2013년 11월 20일
I tries just the first but it did the trick....In my case its first input, if someone has the same problem must be gca.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by