plt.legend(loc='center left', bbox_to_anchor=(1, 0.5))
참조: https://stackoverflow.com/questions/4700614/how-to-put-the-legend-out-of-the-plot
한글입력:
plt.rcParams["font.family"] = 'nanumgothic'
plt.rcParams['axes.unicode_minus'] = False
이거 추가해주면됨. 나눔고딕없으면 다른 폰트로 ㄱ
'Python Tips' 카테고리의 다른 글
CountVectorizer + pyLDAvis (N-gram LDA) (0) | 2020.06.10 |
---|---|
Python MapBox 지도 visualize (0) | 2020.05.11 |
주로 쓰는 좌표계 정리 (0) | 2020.04.08 |
Proj Transformer 좌표 변환 (0) | 2020.04.08 |
GeoPandas 에서 GeoWithin Query하기 (0) | 2020.03.17 |
댓글