Can users pre-determine the legend location when utiliznig the gscatter function?
조회 수: 5 (최근 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!