반응형
import matplotlib.pyplot as plt
sns.heatmap(data=df.corr(), annot=True,
fmt='.2f', linewidths=.5, cmap='GnBu')
matplotlib heatmap 시각화 진행중 figure한글이 깨져 아래와 같이 산출물이 나옴
해결방법 :
plt.rcParams['font.family'] ='Malgun Gothic'
plt.rcParams['axes.unicode_minus'] =False
기본 windows font인 malgun gothic 추가 후 성공 !
반응형
'Project' 카테고리의 다른 글
[Project] 패션 요소 검출을 위한 model 구축 (0) | 2024.05.23 |
---|---|
[Project] 기상데이터를 활용한 태양광 발전량 예측 모델(2) (0) | 2024.02.15 |
[Project] 기상데이터를 활용한 태양광 발전량 예측 모델(1) (0) | 2024.02.15 |