legend at a desired location on a plot
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
madhan ravi
2019 年 1 月 7 日
編集済み: madhan ravi
2019 年 1 月 7 日
text() perhaps? , I think legend can not be specified at a certain point expect the options that you posted
採用された回答
Star Strider
2019 年 1 月 7 日
It does not work exactly as you would like it to, however you apparently can put it anywhere in the figure window.