set fig size of x axis matplotlib code example
Example 1: axis number size matplotlib
ax.tick_params(axis="x", labelsize=8)
ax.tick_params(axis="y", labelsize=20)
Example 2: fig=plt.figure(figsize=(2,2))
subplot(1,1,1)
plot(x, y, 'r--')
subplot(1,2,2)
plot(y, x, 'g*-');