아래 코드를 jupyter notebook에 집어넣으면 됨
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import platform from matplotlib import font_manager, rc import matplotlib # '-' 부호가 제대로 표시되게 하는 설정 matplotlib.rcParams[ 'axes.unicode_minus' ] = False # 운영 체제마다 한글이 보이게 하는 설정 # 윈도우 if platform.system() = = 'Windows' : path = "c:\Windows\Fonts\malgun.ttf" font_name = font_manager.FontProperties(fname = path).get_name() rc( 'font' , family = font_name) #맥 elif platform.system() = = 'Darwin' : rc( 'font' , family = 'AppleGothic' ) # 리눅스 elif platform.system() = = 'Linux' : rc( 'font' , family = 'NanumBarunGothic' ) |
Designed by sketchbooks.co.kr / sketchbook5 board skin
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5