Thief of Wealth

import platform

from matplotlib import font_manager, rc

plt.rcParams['axes.unicode_minus'] = False


if( platform.system() =='Darwin' ):

    rc( 'font', family='AppleGothic' )

elif( platform.system() == 'Windows' ):

    path='c:/Windows/Fonts/malgun.ttf'

    font_name= font_manager.FontProperties( fname=path ).get_name()

    rc('font',family=font_name)

else:

    print('error')

    

해결완료.

'개발 > Python' 카테고리의 다른 글

PyQt5 designer UI를 python 코드로 바꾸기.  (0) 2019.07.16
fbprophet install error?  (0) 2019.07.15
Jupyter Lab 테마 바꾸기  (0) 2019.07.11
Jupyter notebook 꿀팁  (0) 2019.07.11
mac mnist load_data SSL 에러 해결방법  (0) 2019.06.30
profile on loading

Loading...