Matplotlib Figures

When i run my .py file in command prompt, the figure it is showing is not moving but is constant so I am not able to see the top and side view. How to correct this?

Nevermind, I got the error. Thank you!