조회 수 6231 댓글 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
번호 분류 제목 날짜 조회 수 추천 수
431 일반 Common LDAP Queries 2015.05.13 6129 0
430 업무 ABS / PLA 2017.01.18 6197 0
» Python matplot에서 한글이 보이도록 하는 코드 2019.03.06 6231 0
428 Android Git 특정 commit 상태로 되돌리고 SHA1 값 알아내기 2015.05.13 6279 0
427 Pi 라즈베리파이 gpio utility 2017.02.15 6349 0
426 C# How to: Programmatically Add an Entry to Outlook Contacts 2015.05.27 6355 0
425 Pi LCD interface 종류 및 Driver IC 2017.04.17 6389 0
424 Pi 라즈베리파이 음성인식 S/W 2018.04.26 6461 0
423 Pi 안면인식, 동작인식을위한 OpenCV 설치 및 샘플 2017.10.18 6610 0
422 일반 DivX 기술 간단 개요 2014.07.08 6685 0
421 Android Fake Incoming Call Android 2015.07.23 6701 0
420 일반 BT와 BLE 2017.05.16 6702 0
419 MFC [Collection] ArrayList 예제 2017.01.25 6713 0
418 LINUX 리눅스의 기본 명령어들 2015.01.20 6773 0
417 C# Best way to implement keyboard shortcuts in a Windows Forms application 2015.11.06 6775 0
목록
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


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

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

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5