DOMDOM
0posts
today
total
personal posts · since 2021

Fragments
of a day.

A small notebook for slow moments slipping by.

2023 IT Creator
2024 Food Creator
2025 News Creator
2026 News Creator

Latest Posts최근

tistory view

Back to Home

[오류해결] matplotlib font family error

728x90
반응형

 

matplotlib 그래프 만들 때 한글 폰트를 찾는데 에러가 났을 경우

 

[matplotlib font family error] findfont: Font family ['NanumGothic'] not found. Falling back to DejaVu Sans.

 

 

/usr/share/fonts/truetype/ 안에 원하는 한글폰트 파일을 넣어주고, 

아래처럼 캐시삭제를 해준 뒤, matplotlib 코드를 재실행하면 한글이 정상적으로 출력됩니당

// 캐시 삭제
fc-cache -f -v    
rm -rf ~/.cache/matplotlib/fontlist-v330.json

 

 

728x90
반응형

Comments

Thanks for staying up late.

keep wandering · keep listening