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