tick params code example Example: axis number size matplotlib ax.tick_params(axis="x", labelsize=8) ax.tick_params(axis="y", labelsize=20)