How can I replace the line in the following graph by a tiny cylinder?
parametricPlot3D[ {CosSqrt[2]t, Sin[Sqrt[2]t](3+ Cos[t]), Sin[t]}, {t, 0, 100}]
You can post-process the output of ParametricPlot3D
to change Line
s into Tube
s:
ParametricPlot3D[{Cos[Sqrt[2] t], Sin[Sqrt[2] t] (3 + Cos[t]), Sin[t]}, {t, 0, 100}] /.
Line -> (Tube[#, .05] &)
To get a hollow tube use CapForm[None]
and use two different colors for inside and outside faces (say, FaceForm[Blue, Yellow]
):
ParametricPlot3D[{Cos[Sqrt[2] t], Sin[Sqrt[2] t] (3 + Cos[t]), Sin[t]}, {t, 0, 12}] /.
Line -> ({CapForm[None], FaceForm[Blue, Yellow], Tube[#, .25]} &)
ParametricPlot3D[{Cos[Sqrt[2] t], Sin[Sqrt[2] t] (3 + Cos[t]), Sin[t]}, {t, 0, 100}, PlotStyle -> AbsoluteThickness@6]
? $\endgroup$