Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def animate2(i):
- ax1.clear()
- for x in smoothed:
- if i<=360:
- ax1.view_init(elev=10., azim=i)
- ax1.plot(data)
- else:
- ax1.view_init(elev=10., azim=i)
- Az=i-(int(i/360)*360)
- ax1.view_init(elev=10., azim=Az)
- ax1.plot(data)
- fig1 = plt.figure()
- ax1 = fig1.add_subplot(111, projection='3d')
- anim=animation.FuncAnimation(fig1, animate2, interval=8, repeat=True)#frames=range(1, len(test_interp)),
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement