I am trying to create a cylindrical 3D surface plot using Python, where my independent variables are
theta, and the dependent variable is
radius is a function of vertical position and azimuth angle). So far, I have only been able to find ways to create a 3D surface plot that:
zas a function of
ras a function of
z, but does not change with
theta(so, the end product looks like a revolved contour; for example, the case of
r = sin(z) + 1).
I would like to have
r as a function of
theta, because my function will produce a shape that, at any given height, will be a complex function of
theta. On top of that, I need the surface plot be able to have (but does not have to have, depending on the properties of the function) an open top or bottom. For example, if
r is constant from
z = 0 to
z = 1 (a perfect cylinder), I would want a surface plot that would only consist of the side of the cylinder, not the top or bottom. The plot should look like a hollow shell.
I already have the function
Thanks for any help!