legend behind a graph

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

7 comentarios

Star Strider
Star Strider el 10 de Jun. de 2019
Please explain in more detail what you want to do, preferably with an example.
Elzbieta Trynkiewicz
Elzbieta Trynkiewicz el 10 de Jun. de 2019
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').
Alex Mcaulley
Alex Mcaulley el 10 de Jun. de 2019
plot(X,y,'*-');
legend('something','Location','northeastoutside') % have you tried this???
Elzbieta Trynkiewicz
Elzbieta Trynkiewicz el 10 de Jun. de 2019
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 el 10 de Jun. de 2019
It is right there in the documentation: Link
madhan ravi
madhan ravi el 10 de Jun. de 2019
Editada: madhan ravi el 10 de Jun. de 2019
Elzbieta Trynkiewicz
Elzbieta Trynkiewicz el 10 de Jun. de 2019
Ou, right, my bad. The darkest place is under the candlestick :)

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 10 de Jun. de 2019

Comentada:

el 10 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by