Created
October 4, 2020 04:16
-
-
Save rabelais88/ce8a6b66d4f6c4f2aed7ab58f8527d08 to your computer and use it in GitHub Desktop.
seaborn 한국어 폰트 설정+테마 수정
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import seaborn as sns | |
from matplotlib import pyplot as plt | |
import matplotlib as mpl | |
%matplotlib inline | |
pd.options.display.max_columns = 100 | |
# font check | |
from matplotlib import font_manager | |
font_manager._rebuild() | |
for font in font_manager.fontManager.ttflist: | |
if 'Nanum' in font.name: | |
print(font.name, font.fname) | |
# set style | |
sns.set_style("dark") | |
from IPython.display import set_matplotlib_formats | |
set_matplotlib_formats('retina') | |
plt.rc('font', family='NanumGothic') | |
plt.rc('axes', unicode_minus=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment