Skip to content

Instantly share code, notes, and snippets.

@rabelais88
Created October 4, 2020 04:16
Show Gist options
  • Save rabelais88/ce8a6b66d4f6c4f2aed7ab58f8527d08 to your computer and use it in GitHub Desktop.
Save rabelais88/ce8a6b66d4f6c4f2aed7ab58f8527d08 to your computer and use it in GitHub Desktop.
seaborn 한국어 폰트 설정+테마 수정
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