animating contour, contourf, pcolor, etc.

If I have a line that I want to animate, I can clearly write:

lineu, = plot(x,u)
draw()

for p in range(0, N):
  lineu.set_ydata(u)
draw()

Is there an analogue to set_ydata for things plots like contour, contourf, etc.?

-gideon

Gideon Simpson wrote:

If I have a line that I want to animate, I can clearly write:

lineu, = plot(x,u)
draw()

for p in range(0, N):
  lineu.set_ydata(u)
draw()

Is there an analogue to set_ydata for things plots like contour, contourf, etc.?

No, as presently implemented, you simply have to remake the contour (that is, the ContourSet object) with the new data.

Eric