As we know that we can remove the collections of contour/contourf. But how can I remove the contour's clabel?
fig = plt.figure()
ax = fig.add_subplots(111)
for ivalue in range(10):
values = alldata [ivalue,:,:]
cs = plt.contour(x,y,vakues)
cb = plt.clabel(cs, cs.levels)
# now remove cs
for c in cs.collections:
c.remove()
# but how can I remove cb?
plt.savefig('%s.png'%ivalue)
The clabel of first png still exists in second png. So i want to remove clabel meanwhile.