Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- nlp
- ๋จธ์ ๋ฌ๋
- ๋ฐ์ดํฐ๋ถ์
- cs231n
- Kaggle
- ์๊ณ ๋ฆฌ์ฆ
- c++
- ์ ํ๋์ํ
- AI
- ๊นํ
- ๋ฐ์ดํฐ
- linearalgebra
- ๋ค์ดํฐ๋ธ
- ์๋ฒ ๋ฉ
- react
- ๋์
- ๋ฐฑ์ค
- ์ธํ๋ฐ
- native
- ์๋๋ก์ด๋์คํ๋์ค
- ๊ฒฐ์ ํธ๋ฆฌ
- ๋ถ์
- ๋ฅ๋ฌ๋
- ์ํ์ฝ๋ฉ
- ํ๊ตญ์ด์๋ฒ ๋ฉ
- ๋ฆฌ์กํธ
- ํ์ดํ๋
- ๋ฐ์ดํฐ์๊ฐํ
- Titanic
- Git
Archives
- Today
- Total
yeon's ๐ฉ๐ป๐ป
๊ตฌ๊ธ ์ฝ๋ฉ Colab | ํ๊ธ ํฐํธ ์ค์น ๋ณธ๋ฌธ
728x90
์ฃผํผํฐ์์ ์๋ํ๋๋ฐ ์ฝ๋ฉ์์ ํ๋ผ๋๋๋ก ํ๊ธ ํฐํธ๋ฅผ ์ค์นํด๋ ํ๊ธ์ด ์๊พธ ๊นจ์ก๋ค !!
๊ทธ๋ฌ๋ค ๋์ ์ฃผ์ ์กฐ์ ๋ถ ๋๋ถ์ ํด๊ฒฐ :) :) :)
๋์ค์ ๋ ์์ง ์๊ณ ๋ ์จ๋จน๊ฒ ๊ธฐ๋กํ๋ท
# ๋จ๊ณ 1: ํฐํธ ์ค์น
import matplotlib.font_manager as fm
!apt-get -qq -y install fonts-nanum > /dev/null
fontpath = '/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf'
font = fm.FontProperties(fname=fontpath, size=9)
fm._rebuild()
# ๋จ๊ณ 2: ๋ฐํ์ ์ฌ์์
import os
os.kill(os.getpid(), 9)
# ๋จ๊ณ 3: ํ๊ธ ํฐํธ ์ค์
import matplotlib.pyplot as plt
import matplotlib as mpl
import matplotlib.font_manager as fm
# ๋ง์ด๋์ค ํ์ ๋ฌธ์
mpl.rcParams['axes.unicode_minus'] = False
# ํ๊ธ ํฐํธ ์ค์
path = '/usr/share/fonts/truetype/nanum/NanumGothicBold.ttf'
font_name = fm.FontProperties(fname=path, size=18).get_name()
plt.rc('font', family=font_name)
fm._rebuild()
'Computer ๐ป > Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Django] Settings (0) | 2022.04.13 |
---|---|
[Django] Start (0) | 2022.04.06 |
ํ ๋๋ง๋ค ๊น๋จน์ด์ ์ ๋ฆฌํ๋ | ํฐ๋ฏธ๋์์ ํ์ผ zip / unzip (1) | 2022.03.31 |
[python] zip ํด๋ ์์ถ ํ๊ธฐ (feat. ์ฃผํผํฐ ๋ ธํธ๋ถ) (0) | 2022.03.15 |
ํ์ด์ฌ Counter (0) | 2022.01.14 |
Comments