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!