Version 2.2.4
matplotlib

matplotlib.axis.YAxis.cla

YAxis.cla()

clear the current axis