본문 바로가기
메모장

mapplot한글폰트 꺠질때해결

by Joshua21 2021. 8. 2.

import matplotlib
print(matplotlib.matplotlib_fname())

 

실행하면 경로가 출력됨 해당경로로 들어가서 font 추가하고 text파일로 열어서 font이름 수정하면됨

 

import matplotlib.pyplot as plt
plt.rcParams["font.family"]="D2Coding"

 

작동하는지 확인

'메모장' 카테고리의 다른 글

로컬에서 깃브랜치 그래프로 보는법  (0) 2021.12.17
블로그  (0) 2021.12.11