Matplot histogram: set tick font


Dear all,

I am trying to use matplot to draw a histogram. The plot is drawn but I can’t set the tick font size. I could change the labels’ font with

plt.xlabel("Age", fontsize=18)
plt.ylabel("Frequency", fontsize=18)

but I cannot find a clear answer on the ticks’ font. It should be something with

ax.set_xticklabels('fontsize': 14)
ax.xaxis.set_tick_params(which='both', rotation=90)

but I can’t find a sintax that works…

Any tips on that?

Thank you