I am trying to create an animation in matplotlib that updates three artists, including imshow, contour and text. Using FuncAnimation I am able to update the text and the image components, but have not been able to update the contour. Specifically, I tried this as my callback:
def updatefig(*args):
text_component.set_text(newText())
image_component.set_array(newArrayData())
contour_component.set_array(newArrayData())
return [text_component,image_component,contour_component]
This code doesn't raise an exception but neither does it update the contour lines. I wonder if this is just a matter my not knowing the right setter method of if there is more to it. Can anyone tell me if this is possible?
Thanks, Eli