Created
June 8, 2018 09:34
-
-
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.
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 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