On Sat, Aug 21, 2010 at 2:39 PM, Benjamin Root <ben.r...@ou.edu> wrote:
> > > On Sat, Aug 21, 2010 at 7:03 AM, David Pine <djp...@gmail.com> 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. >> >> David Pine >> > > 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, > Ben Root > > 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... line.set_data(data[0:2, num:num+2]) line.set_3d_properties(data[2,num:num+2]) return lines 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. Ben Root
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users