With matplotlib 2.2+
, you can use the keyword argument pad
:
ax.set_title('Title', pad=20)
Adjust pad
until you’re happy with the axis title position. The advantage of this method over using rcParams
is that it only changes this one axis title.