Can users pre-determine the legend location when utiliznig the gscatter function?
4 ビュー (過去 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!