matplotlib set axis font size code example
Example 1: axis number size matplotlib
ax.tick_params(axis="x", labelsize=8)
ax.tick_params(axis="y", labelsize=20)
Example 2: matplotlib set size
plt.figure(figsize=(20,8))
ax.tick_params(axis="x", labelsize=8)
ax.tick_params(axis="y", labelsize=20)
plt.figure(figsize=(20,8))