조회 수 5971 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print


아래 코드를 jupyter notebook에 집어넣으면 됨


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')



Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
35 Python Image 기반 Steganography 예제 1 2019.07.17 25137 0
34 Python 디렉토리 없으면 만들기 2019.03.30 5647 0
33 Python 줄 바꿈 없이 출력하는 방법 2019.03.30 6728 0
32 Python Google Colab에서 파일 업로드/다운로드 팁 2019.03.06 36362 0
31 Python pandas, matplot 자주사용하는 코드 2019.03.06 4847 0
» Python matplot에서 한글이 보이도록 하는 코드 2019.03.06 5971 0
29 Python [tensorflow] 텐서플로우 문서 한글번역본 2018.03.22 5096 0
28 Python [tensorflow] 선형회귀 예제 2018.02.05 5333 0
27 Python json 데이터 핸들링 2017.03.09 8581 0
26 Python pygoogle 파이썬으로 구글 검색결과 가져오기 library 2016.01.20 9825 0
25 Python pyBest 소스 secret 2016.01.20 0 0
24 Python 커맨드 라인에서 컬러로 출력하기 termcolor 2014.06.27 10577 0
23 Python [Sconscript] Install method 2014.05.29 8488 0
22 Python C, Python and swig on Windows with Visual Studio 2014.05.29 11501 0
21 Python Python 유용한 코드 모음 2014.05.20 15101 0
목록
Board Pagination ‹ Prev 1 2 3 Next ›
/ 3

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5