size of labels axis matplotlib code example
Example 1: axis number size matplotlib
ax.tick_params(axis="x", labelsize=8)
ax.tick_params(axis="y", labelsize=20)
Example 2: label size matplotlib
plt.xlabel("Time (s)", fontsize = 40)
ax.tick_params(axis="x", labelsize=8)
ax.tick_params(axis="y", labelsize=20)
plt.xlabel("Time (s)", fontsize = 40)