- #1
member 428835
Hi PF!
I'm trying to plot in 3D. I have ##r = f(\theta,z=0)## and it plots well. However, I would like to plot ##r = f(\theta,z)## in 3D. Any idea how to do this? The radius is actually a separable function ##r = h(\theta)g(z)##, so I have ##h## plotted for a given ##\theta## vector and ##g## plotted for a given ##z## vector.
I should say, I tried using the polar plot command to initially plot ##r = f(\theta,z=0)## but this was taking so long that parameterized ##x(\theta),y(\theta)## and plotted normally. In this air, I was thinking ##x = h(\theta)g(z)\cos\theta## and ##y=h(\theta)g(z)\sin\theta##, but I don't know how to plot this in 3D.
My question to you is, how would you plot this in 3D?
Thanks!
I'm trying to plot in 3D. I have ##r = f(\theta,z=0)## and it plots well. However, I would like to plot ##r = f(\theta,z)## in 3D. Any idea how to do this? The radius is actually a separable function ##r = h(\theta)g(z)##, so I have ##h## plotted for a given ##\theta## vector and ##g## plotted for a given ##z## vector.
I should say, I tried using the polar plot command to initially plot ##r = f(\theta,z=0)## but this was taking so long that parameterized ##x(\theta),y(\theta)## and plotted normally. In this air, I was thinking ##x = h(\theta)g(z)\cos\theta## and ##y=h(\theta)g(z)\sin\theta##, but I don't know how to plot this in 3D.
My question to you is, how would you plot this in 3D?
Thanks!
Last edited by a moderator: