フィルターのクリア

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 Center および File ExchangeLegend についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by