import matplotlib.pyplot as plt plt.cla() # 축, 그래프 초기화, Clear the current axes
import matplotlib.pyplot as plt plt.clf() # 그림 초기화, Clear the current figure
출처 : http://blog.naver.com/PostView.nhn?blogId=wideeyed&logNo=221700401548