how to write in the graph
조회 수: 1 (최근 30일)
이전 댓글 표시
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.....
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 3월 22일
편집: Azzi Abdelmalek
2013년 3월 22일
댓글 수: 1
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
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!