style sheet

x-y 軸につけられる数値のフォントサイズを変更するには,

sty4paper.mplstyleなどという拡張子がmplstyleであるスタイルシートのファイルを作って,そこにxtick.labelsize, ytick.labelsizeを指定し,

plt.style.use('./sty4paper.mplstyle')

のようにして読み込む.基本となるスタイルを変更するには,同ファイルをmatplotlibの設定ファイルであるmatplotlibrcが存在するフォルダの直下に,stylelibというフォルダを作って,その中に自分のスタイルシートを格納する.

xtick.labelsize : small # fontsize of the tick labels

ytick.labelsize : small # fontsize of the tick labels

あるいは

xtick.labelsize : 10 # fontsize of the tick labels

ytick.labelsize : 10 # fontsize of the tick labels

スタイルシートは使い分けをすることも有用だろう.

To change the fontsize of