ラベルの fontsize で指定する。
例
import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2, 100) plt.plot(x, x*x, label='linear') plt.xlabel('x axis', fontsize=20) plt.ylabel('y axis', fontsize=20) plt.title("large title", fontsize=30) plt.show()
結果
