I could set it by checking from the list and editing the file a little without downloading.
terminal
$ uname -a
Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64 GNU/Linux
$ cat /etc/debian_version
9.0
$ python3 --version
Python 3.5.3
$ python3 -c "import matplotlib; print(matplotlib.__version__)"
2.0.0
terminal
$ python3 -c "import matplotlib as mpl; print(mpl.matplotlib_fname())"
/etc/matplotlibrc
$ python3 -c "import matplotlib.font_manager; print([f.name for f in matplotlib.font_manager.fontManager.ttflist])" | grep --color=auto -i gothic
['STIXGeneral', ... , 'IPAGothic', ... 'MathJax_SansSerif']
The text you're looking for is highlighted in color so you can easily find it.
$ sudo vim /etc/matplotlib
Replace with font.family: IPAGothic
.
Recommended Posts