Version 2.2.4
matplotlib

matplotlib.axis.XAxis.cla

XAxis.cla()

clear the current axis