You can rotatate the labels in x-axis to fix the overlapping.
ax=plt.gca() for item in ax.xaxis.get_ticklabels(): item.set_rotation(+45)