legend at a desired location on a plot
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Megha
am 7 Jan. 2019
Kommentiert: Star Strider
am 7 Jan. 2019
How to put legend on a deisred location i.e desired x,y points in matlab?
In a plot of
X = 1:10;
Y = 1:10;
plot(X,Y);
legend([5,5],'linear')
I want legend at the centre of the plot at [x,y] = [5,5]
Is there any way to ge it?
I do not want legend orienattaion and locataions like 'SouthWest','SouthWestOutside'... and so on....
1 Kommentar
madhan ravi
am 7 Jan. 2019
Bearbeitet: madhan ravi
am 7 Jan. 2019
text() perhaps? , I think legend can not be specified at a certain point expect the options that you posted
Akzeptierte Antwort
Star Strider
am 7 Jan. 2019
It does not work exactly as you would like it to, however you apparently can put it anywhere in the figure window.
2 Kommentare
Weitere Antworten (0)
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!