Skip to content

Instantly share code, notes, and snippets.

@u1and0
Last active October 22, 2019 10:27
Show Gist options
  • Select an option

  • Save u1and0/2b2395668e7f47a3ab4284b32d357766 to your computer and use it in GitHub Desktop.

Select an option

Save u1and0/2b2395668e7f47a3ab4284b32d357766 to your computer and use it in GitHub Desktop.
matplotlib, seabornの日本語表示 ref: https://qiita.com/u1and0/items/3b4d0f3e5514c9893d89
sns.set(font=['IPAMincho'])
import matplotlib as mpl
mpl.rcParameters['font.family'] = 'IPAMincho'
def set(context="notebook", style="darkgrid", palette="deep",
font="IPAMincho", font_scale=1, color_codes=False, rc=None):
import matplotlib as mpl
matplotlib.font_manager._rebuild()
font.family : IPAMincho
>>> import matplotlib as mpl
>>> mpl.matplotlib_fname()
'C:\\Users\\python\\.matplotlib\\matplotlibrc'
import matplotlib as mpl
mpl.rcParameters['font.family'] = 'IPAMincho'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment