Can users pre-determine the legend location when utiliznig the gscatter function?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Brad
le 26 Juin 2013
Modifié(e) : Óscar Miranda Domínguez
le 3 Mar 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 commentaires
Réponse acceptée
Brad
le 1 Juil 2013
1 commentaire
Óscar Miranda Domínguez
le 3 Mar 2015
Modifié(e) : Óscar Miranda Domínguez
le 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')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Legend dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!