plt change ticks font size code example Example: ticks font size matplotlib ax.tick_params(axis='both', which='major', labelsize=10)