Matlab: complex legends
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
Could you please tell me if it is possible to do a complex legend by Matlab like the one attached below ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/621078/image.png)
Regards,
Mary
Update:
I managed to create something as following by fixing the number of columns to 2 and removing the text in the legend. Afterwards, I inserted text boxes. However, the distance shown by an arrow between the two columns is very big (the place where before the legends were annotated). Is there anyway to make that space smaller ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/621133/image.png)
3 Kommentare
Rik
am 18 Mai 2021
The idea is to have a second axes with some line and text objects. I don't have a specific suggestion, so I would suggest you just try something. If you get stuck, feel free to post a comment.
Antworten (1)
KSSV
am 18 Mai 2021
plot(1:10,rand(1,10),'^-','color','r')
hold on
plot(1:10,rand(1,10),'o-','color','b')
legend
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!