Skip to content

Instantly share code, notes, and snippets.

@solidpple
Created December 9, 2018 01:36
Show Gist options
  • Save solidpple/89ccf116f2ad7a27f5016872cb3e8f91 to your computer and use it in GitHub Desktop.
Save solidpple/89ccf116f2ad7a27f5016872cb3e8f91 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
from matplotlib import font_manager, rc
fontname = u'/usr/share/fonts/nhn-nanum/NanumGothic.ttf' #plt.font_manager.get_fontconfig_fonts()[0]
fontname = font_manager.FontProperties(fname=fontname).get_name()
plt.style.use('seaborn-white')
rc('font', family=fontname)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment