Skip to content

Instantly share code, notes, and snippets.

@goddoe
Created June 8, 2018 09:34
Show Gist options
  • Save goddoe/96b784096ba58acb8a60e76491ecde48 to your computer and use it in GitHub Desktop.
Save goddoe/96b784096ba58acb8a60e76491ecde48 to your computer and use it in GitHub Desktop.
Fixing plot display issue which Korean doesn't display on plot in Matplotlib.
import matplotlib
import matplotlib.font_manager
print([f.name for f in matplotlib.font_manager.fontManager.ttflist if 'Nanum' in f.name])
# Select one of Korean fonts
# And set like this.
plt.rcParams['font.family'] = 'NanumBarunGothic'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment