matplotlib の日本語変更

以下のコマンドでフォントがあれば、入れてみる。

print([f.name for f in matplotlib.font_manager.fontManager.ttflist])

例えば

from matplotlib import rcParams
rcParams['font.family'] = 'IPAPGothic'