Animating 3d scatterplot in matplotlib

前端 未结 2 1267
夕颜
夕颜 2020-12-09 12:28

I\'m trying to get a 3d animation of a scatterplot in matplotlib, based off the 2d scatterplot animation posted here and the 3d line plot posted here.

The problems a

2条回答
  •  自闭症患者
    2020-12-09 12:50

    Found the solution finally, here is how to update points w/o touching colors:

    from mpl_toolkits.mplot3d.art3d import juggle_axes
    scat._offsets3d = juggle_axes(xs, ys, zs, 'z')
    

    this is internally done by set_3d_properties along with re-initializing colors

提交回复
热议问题