How can I change the font size of ticks of axes object in matplotlib [duplicate] How can I change the font size of ticks of axes object in matplotlib [duplicate] python python

How can I change the font size of ticks of axes object in matplotlib [duplicate]


fig = plt.figure()ax = fig.add_subplot(111)plt.xticks([0.4,0.14,0.2,0.2], fontsize = 50) # work on current figplt.show()

the x/yticks has the same properties as matplotlib.text