목록산점도 (1)
Learn & Record

1. 한글사용 - 폰트를 변경하지 않으면 기본 폰트는 'sans-serif' - 폰트를 변경하려면 다음과 같이 수행 - matplotlib.rcParams['font.family'] = '폰트 이름' - matplotlib.rcParams['axes.unicode_minus'] = False - matplotlib.rcParams['axes.unicode_minus'] = False는 한글 폰트를 지정한 후에 - 그래프에서 마이너스(-) 폰트가 깨지는 문제를 해결해줌 import matplotlib.pyplot as plt import numpy as np import matplotlib matplotlib.rcParams['font.family'] = 'Malgun Gothic' # '맑은 고딕'으로 ..
Dev/Python
2024. 3. 14. 17:15