title: Jupyter | How to rotate 3D graph
body: <p>I am not sure about how to rotate graph in Python Jupyter notebook, its static for me and not rotate on mouse movement</p>
  
  <pre><code>from mpl_toolkits.mplot3d import Axes3D
  import matplotlib.pyplot as plt
  
  fig = plt.figure()
  ax = fig.add_subplot(111, projection='3d')
  
  x =[1,2,3,4,5,6,7,8,9,10]
  y =[5,6,2,3,13,4,1,2,4,8]
  z =[2,3,3,3,5,7,9,11,9,10]
  
  ax.scatter(x, y, z, c='r', marker='o')
  
  ax.set_xlabel('X Label')
  ax.set_ylabel('Y Label')
  ax.set_zlabel('Z Label')
  
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZmxeZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZmxeZ.png" alt="enter image description here"></a></p>