Can users pre-determine the legend location when utiliznig the gscatter function?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Brad
2013-7-1
1 个评论
Óscar Miranda Domínguez
2015-3-3
编辑:Óscar Miranda Domínguez
2015-3-3
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')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!