How to change a font size within a plot figure
You may use tick_params function like plt.tick_params(axis='y', which='major', labelsize=10)
This question already has an answer here:
How to change the font size on a matplotlib plot