Hey !
Is there possibility to place a legend of the plot behind the area of a graph?

댓글 수: 7

Star Strider
Star Strider 2019년 6월 10일
Please explain in more detail what you want to do, preferably with an example.
Command:
plot(X,y,'*-');
legend('something','Location','NorthEast') % for example
allow to place legend inside the plot (like on 'A' image), but I would like to place legend behind the area of plot (exactly like on 'B image').
plot(X,y,'*-');
legend('something','Location','northeastoutside') % have you tried this???
Elzbieta Trynkiewicz
Elzbieta Trynkiewicz 2019년 6월 10일
Ou, thank you :) It is exactly what I was looking for. Too bad there is no information about such command in the mathwork documentation. It is so easy.
Rik
Rik 2019년 6월 10일
It is right there in the documentation: Link
madhan ravi
madhan ravi 2019년 6월 10일
편집: madhan ravi 2019년 6월 10일
Elzbieta Trynkiewicz
Elzbieta Trynkiewicz 2019년 6월 10일
Ou, right, my bad. The darkest place is under the candlestick :)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

질문:

2019년 6월 10일

댓글:

2019년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by