title: Ellipsoid creation in Python
body: <p>I have ran into a problem relating to the drawing of the Ellipsoid.</p>
  
  <p>The ellipsoid that I am drawing to draw is the following:</p>
  
  <pre><code>x**2/16 + y**2/16 + z**2/16 = 1.
  </code></pre>
  
  <p>So I saw a lot of references relating to calculating and plotting of an Ellipse void and in multiple questions a cartesian to spherical or vice versa calculation was mentioned. </p>
  
  <p>Ran into a website that had a calculator for it, but I had no idea on how to successfully perform this calculation. Also I am not sure as to what the linspaces should be set to. Have seen the ones that I have there as defaults, but as I got no previous experience with these libraries, I really don't know what to expect from it.</p>
  
  <pre><code>from mpl_toolkits.mplot3d import Axes3D
  import matplotlib.pyplot as plt
  import numpy as np
  
  fig = plt.figure(figsize=plt.figaspect(1))  # Square figure
  ax = fig.add_subplot(111, projection='3d')
  
  multip = (1, 1, 1) 
  # Radii corresponding to the coefficients:
  rx, ry, rz = 1/np.sqrt(multip)
  
  # Spherical Angles
  u = np.linspace(0, 2 * np.pi, 100)
  v = np.linspace(0, np.pi, 100)
  
  # Cartesian coordinates
  
  #Lots of uncertainty.
  #x = 
  #y = 
  #z = 
  
  # Plot:
  ax.plot_surface(x, y, z,  rstride=4, cstride=4, color='b')
  
  # Axis modifications
  max_radius = max(rx, ry, rz)
  for axis in 'xyz':
      getattr(ax, 'set_{}lim'.format(axis))((-max_radius, max_radius))
  
  plt.show()
  </code></pre>