LaTeX
Matplotlib 에서 legend 위치 결정하는 방법
ForceCore
2011. 1. 27. 18:43
http://matplotlib.sourceforge.net/users/legend_guide.html#plotting-guide-legend
여기 그림도 나와있음. bbox_to_anchor를 쓰면 plot 바깥에 legend를 둘 수도 있다.
Matplotlib Legend Outside
Matplotlib 범례 바깥에 놓기
legend( ncol=1, loc='center right',bbox_to_anchor=(1.3,0.5), scatterpoints=1 )
필자는 이 명령어로 아래와 같은 결과를 얻었다:
:D