필터 지우기
필터 지우기

how to write in the graph

조회 수: 1 (최근 30일)
Elysi Cochin
Elysi Cochin 2013년 3월 22일
Is it possible to write something on a graph.... that is i plot a graph and in its x - axis it is image category.... i have 10 categories.... so i wanted to write in the graph what each category is.... can someone show me how to do it.... please do reply.....

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 22일
편집: Azzi Abdelmalek 2013년 3월 22일
You can use legend
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 22일
편집: Azzi Abdelmalek 2013년 3월 22일
Example
l={'Mountain','Seashore','A','B','Car'}
plot(1:5,sin(1:5))
set(gca,'xtick',1:5,'xticklabel',l)

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

추가 답변 (1개)

Image Analyst
Image Analyst 2013년 3월 22일
You can also use text() if you want to write something that doesn't look like a legend. With text() you also specify the exact location where you want the text to appear.
  댓글 수: 1
Elysi Cochin
Elysi Cochin 2013년 3월 26일
thank u sir...

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by