matplot lib change label size code example Example: label size matplotlib plt.xlabel("Time (s)", fontsize = 40)