per this post, this formula
$Z = 1 - \sqrt{X^{2} + Y^{2}}$
generates a cone where the point is at (0, 0, 1) and it spreads out below that. It meets the x-y plane at the unit circle
I am trying to reproduce with Python
ax = plt.figure().gca(projection='3d') xx, yy = np.meshgrid(np.arange(-1,1.1,.1), np.arange(-1,1.1,.1)) zz = 1 - np.sqrt(xx**2, yy**2) ax.plot_surface(xx, yy, zz, alpha=.5) and get this "roof"
each of xx, yy, zz is a 21 by 21 matrix, even if I increase them to 210 by 210, nothing changes, what am I missing?


np.sqrt(xx**2, yy**2)? I would expect something likenp.sqrt(xx**2 + yy**2). Otherwise you're getting back an array of square roots, right? $\endgroup$