Matplotlib 한글 깨짐 해결

날짜
2025/03/26
맥북
from matplotlib import rc rc('font', family='AppleGothic') plt.rcParams['axes.unicode_minus'] = False
Python
복사
윈도우
from matplotlib import rc plt.rc('font', family='NanumGothic')
JavaScript
복사
그 외 안될 때
from matplotlib import font_manager font_manager.findSystemFonts() #이걸로 찾고 font_location = 'C:\\WINDOWS\\Fonts\\NanumGothicExtraBold.ttf' # For Windows font_name = fm.FontProperties(fname=font_location).get_name() matplotlib.rc('font', family=font_name)
JavaScript
복사