Move X-Axis label downwards, but not X-Axis Ticks in matplotlib

use labelpad parameter:

pl.xlabel("...", labelpad=20)

or set it after:

ax.xaxis.labelpad = 20

Leave a Comment