最初におまじないを唱える
import matplotlib from matplotlib.font_manager import FontProperties font_path = '/usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf' font_prop = FontProperties(fname=font_path) matplotlib.rcParams['font.family'] = font_prop.get_name()
フォントは以下のコマンドで探せる.下記はipaフォントを探す場合.
fc-list|grep -i ipa