Can users pre-determine the legend location when utiliznig the gscatter function?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Brad
am 26 Jun. 2013
Bearbeitet: Óscar Miranda Domínguez
am 3 Mär. 2015
I'm putting together an M-file where I include several group scatter plots. For unknown reasons, I'm unable to pre-determine the legend location (NorthEastOutside). I can determine the location after the plot is created by manually editing the figure properties.
Is this a limitation of the function?
2 Kommentare
Akzeptierte Antwort
Brad
am 1 Jul. 2013
1 Kommentar
Óscar Miranda Domínguez
am 3 Mär. 2015
Bearbeitet: Óscar Miranda Domínguez
am 3 Mär. 2015
It is easier to just silence the auto legend in gscatter by setting doleg as "off" Next, add the legend. Example:
gscatter(c2,c1,my_labels,my_color,'o+',[],'off');
legend(unique(char(my_labels),'rows'),'location','best')
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!