Maybe this is a tricky one! I want to have a 3D plot in Cartesian coordinates of a point moving in a circular orbit around x,y,z = 0. where the circular motion is only in the x,y plane.

Has anyone any experience with this. I initially started with just plotting a circle on the x,y plane in a 3D axis - but I would like this to be more dynamic!



1 Answer 1

path[var_] = {Cos@var, Sin@var, Sin[4 var]};
  ParametricPlot3D[path@u, {u, 0, 2 Pi}, PlotStyle -> Gray], 
  Graphics3D[{Red, PointSize[0.05], Point[path@v]}], 
  Graphics3D[Text[ToString@path@v, {0.8, -1.6, -1}]]],
 {v, 0, 2 Pi}
  • $\begingroup$ Thanks! This is great! Do you know if there is a way I can express this in terms of x,y,z? $\endgroup$
    – user27119
    Mar 5, 2016 at 18:29
  • $\begingroup$ Is this what you meant by x,y,z? $\endgroup$ Mar 5, 2016 at 18:38
  • $\begingroup$ Sorry I know I asked this in a strange way. The reason is I now want to make the particle move up and down in the z-axis while its also moving in a circular motion like you did for me $\endgroup$
    – user27119
    Mar 5, 2016 at 18:43
  • $\begingroup$ What about this? Generalized for any parametric path where $v$ is time. $\endgroup$ Mar 5, 2016 at 18:48
  • $\begingroup$ Very very close! I mean imagine you draw a Sin wave on a piece of transparent paper, and then roll that into a tube...if you see what i mean! $\endgroup$
    – user27119
    Mar 5, 2016 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.