As an additional note, I dug through my fishtank example and found my update_line() function with a note to myself:
def update_lines(num, dataLines, lines) :
for line, data in zip(lines, dataLines) :
# NOTE: there is no .set_data() for 3 dim data...
So that is how I updated the lines by using the 2d set_data() function, and then using set_3d_properties() to add the 3rd dimension.
On Sat, Aug 21, 2010 at 2:39 PM, Benjamin Root <ben.root@…3146…4…> wrote:
On Sat, Aug 21, 2010 at 7:03 AM, David Pine <djpine@…287…> wrote:
Is it possible to do animation with the mplot3d toolkit? It seems like it ought to work but I am having trouble. In particular, it seems that the set_xdata and set_ydata commands do not work. I would imagine you need a set_zdata function as well but that seems not to exist, which suggests that mplot3d isn’t animation ready yet. Is that right or am I missing something? Thanks.
Yes, it is very much possible to make 3d animations. I have written up some examples that used Ryan May’s prototype animation module. It is even possible to do multiple 3d animated subplots.
Check out Ryan’s github repo: http://github.com/dopplershift/Animation
I believe it contains my “fish tank” example. If not, I might have it in my fork: http://github.com/WeatherGod/Animation
I hope this helps,