title: 3D plot of the CONE using matplotlib
body: <p>I'm looking for help to draw a 3D cone using matplotlib. 
  My goal is to draw a HSL cone, then base on the vertex coordinats i will select the color. </p>
  
  <pre><code>from matplotlib import cm
  from mpl_toolkits.mplot3d import Axes3D
  import matplotlib.pyplot as plt
  import numpy as np
  
  fig = plt.figure()
  ax = fig.add_subplot(111, projection='3d')
  
  theta1 = np.linspace(0, 2*np.pi, 100)
  r1 = np.linspace(-2, 0, 100)
  t1, R1 = np.meshgrid(theta1, r1)
  
  X1 = R1*np.cos(t1)
  Y1 = R1*np.sin(t1)
  Z1 = 5+R1*2.5
  
  theta2 = np.linspace(0, 2*np.pi, 100)
  r2 = np.linspace(0, 2, 100)
  t2, R2 = np.meshgrid(theta2, r2)
  
  X2 = R2*np.cos(t2)
  Y2 = R2*np.sin(t2)
  Z2 = -5+R2*2.5
  
  
  ax.set_xlabel('x axis')
  ax.set_ylabel('y axis')
  ax.set_zlabel('z axis')
  # ax.set_xlim(-2.5, 2.5)
  # ax.set_ylim(-2.5, 2.5)
  # ax.set_zlim(0, 5)
  ax.set_aspect('equal')
  
  ax.plot_surface(X1, Y1, Z1, alpha=0.8, color="blue")
  ax.plot_surface(X2, Y2, Z2, alpha=0.8, color="blue")
  # ax.plot_surface(X, Y, Z, alpha=0.8)
  #fig. savefig ("Cone.png", dpi=100, transparent = False)
  
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/l5Ffn.png" rel="nofollow noreferrer">HSL CONE</a></p>
  
  <p><a href="https://i.stack.imgur.com/HB6E8.png" rel="nofollow noreferrer">My cone</a></p>
  
  <p>So my question now is how to define color of each element.</p>