반응형
matplotlib
-
[Matplotlib] 한국어 깨짐 해결 방법(로컬, 코랩(Colab), 기타 플랫폼)오류해결 2025. 5. 19. 19:42
이번 포스팅에서는 matplotlib에서 한글 깨짐 현상을 해결해 보도록 하겠습니다😊아래 코드와 같이 로컬, 기타 플랫폼, 코랩 환경에서 font이름을 확인하여,폰트를 적용시킬 수 있습니다. 🖥️로컬# 로컬 환경에서 폰트 확인import matplotlib.pyplot as pltfrom matplotlib import font_managerfont_dirs = ["C:\Windows\Fonts"] # The path to the custom font file.font_files = font_manager.findSystemFonts(fontpaths=font_dirs, fontext='ttf')for font_file in font_files: font_manager.fontManager.a..