[matplotlib] 한국어 깨짐

두꺼비·2025년 4월 14일
0

matplotlib를 사용할 때, 한국어를 작성하면 깨질 때가 많다.
이럴때 다음과 같이 코드를 두 줄 추가해주면 해결 완료!

import matplotlib.pyplot as plt

plt.rc('font', family='d2coding')
%matplotlib inline

family에는 원하는 Font이름을 넣어주면 된다.

profile
두꺼비는 두껍다

0개의 댓글