3

I have been trying to add an arrow head at the end (o even at some point) of a very simple parametric.

ParametricPlot3D[{-5 Sin[3 t], 5 Cos[3 t], t}, {t, 0, 15}]

But can not find a simple way to do it.

I have tried to merge plots using Show[plot1,arrowh] (for example), but this is not that elegant nor functional.

Any ideas?

C. Alexander
  • 133
  • 2

1 Answers1

5

ParametricPlot3D creates a Line which we can replace by an Arrow:

pl = ParametricPlot3D[{-5 Sin[3 t], 5 Cos[3 t], t}, {t, 0, 15}];
pl /. Line -> Arrow

Output

This will place arrowheads at fractions 0.1, 0.4, 0.7 and 1 along the curve:

arrowheads = Arrowheads@Transpose[{
     ConstantArray[Large, 4],
     {0.1, 0.4, 0.7, 1}
     }];
pl /. Line[pts_] :> {arrowheads, Arrow[pts]}

Output

C. E.
  • 70,533
  • 6
  • 140
  • 264