Python

[Python] Jupyter notebook_matplotlib 한글 설정

ram_ 2022. 11. 5. 16:23

✔️한글 적용 코드 -> 매번 실행.

 

import matplotlib.pyplot as plt
from matplotlib import rc
%matplotlib inline
rc('font', family = 'Arial Unicode Ms')
plt.title("데이터사이언스");

from matplotlib import font_manager
f_path = "/Library/Fonts/Arial Unicode.ttf"
font_manager.FontProperties(fname=f_path).get_name()

 

'Arial Unicode MS'