Can users pre-determine the legend location when utiliznig the gscatter function?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Brad
il 1 Lug 2013
1 Commento
Óscar Miranda Domínguez
il 3 Mar 2015
Modificato: Óscar Miranda Domínguez
il 3 Mar 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')
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Legend in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!