Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

How to use Matplotlib to animate a turning figure in 3D

$
0
0

I need to turn a three-dimensional figure in matplotlib. I tried using FuncAnimation(), but, as far as I'm concerned, this thing is only useful, when the figure is expanding or shrinking, not rotating. Then I tried the structure

 for angle in range(0, 360):     ax.view_init(10, angle)         plt.draw()     plt.pause(.001)

The problem is, that the pause() function is experimental and can't rotate a figure with any given speed.


Viewing all articles
Browse latest Browse all 13951

Trending Articles