how to write in the graph
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 22 Mär. 2013
Bearbeitet: Azzi Abdelmalek
am 22 Mär. 2013
1 Kommentar
Azzi Abdelmalek
am 22 Mär. 2013
Bearbeitet: Azzi Abdelmalek
am 22 Mär. 2013
Example
l={'Mountain','Seashore','A','B','Car'}
plot(1:5,sin(1:5))
set(gca,'xtick',1:5,'xticklabel',l)
Weitere Antworten (1)
Image Analyst
am 22 Mär. 2013
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.
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!