250x250
Link
๋‚˜์˜ GitHub Contribution ๊ทธ๋ž˜ํ”„
Loading data ...
Notice
Recent Posts
Recent Comments
๊ด€๋ฆฌ ๋ฉ”๋‰ด

Data Science LAB

[Python] matplotlib ํ•œ๊ธ€ ๊นจ์ง ๋ฐฉ์ง€, ํ•œ๊ธ€ ์ถœ๋ ฅ ๋ฐฉ๋ฒ• ๋ณธ๋ฌธ

๐Ÿ Python/์‹œ๊ฐํ™”

[Python] matplotlib ํ•œ๊ธ€ ๊นจ์ง ๋ฐฉ์ง€, ํ•œ๊ธ€ ์ถœ๋ ฅ ๋ฐฉ๋ฒ•

ใ…… ใ…œ ใ…” ใ…‡ 2022. 8. 26. 03:15
728x90
from matplotlib import font_manager, rc
font_path = 'C:/Windows/Fonts/NGULIM.TTF'
font = font_manager.FontProperties(fname = font_path).get_name()
rc('font', family = font)

 

font_path๋Š” ์‚ฌ์šฉํ™˜๊ฒฝ์— ๋”ฐ๋ผ ๋‹ค๋ฅผ ์ˆ˜ ์žˆ์Œ, ๋งˆ์ง€๋ง‰ ๊ธ€์ž๋Š” ์›ํ•˜๋Š” ๊ธ€์ž๋กœ ์„ ํƒ

 

 

์ด๋Ÿฐ์‹์œผ๋กœ font๊ฒฝ๋กœ๋กœ ๋“ค์–ด๊ฐ€์„œ ์›ํ•˜๋Š” ํฐํŠธ์˜ ๊ฒฝ๋กœ๋ฅผ ๋ณต์‚ฌํ•ด ์˜จ๋’ค

font_path์— ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

 

728x90
Comments