I have a function of two variables which returns a vector of three components. For example
func[l_,t_]:={
x=....
y=....
z=....
{x,y,z}}
Now I want to do a 3D parametric plot for this function with the parameter being t
for different values of the variable l
(say 10 values).
I do the following
ParametricPlot3D[Evaluate[Table[func[l, t][[1]], {l, 1,10}]], {t, 0, 20}]
This works fine and I get 10 different lines with 10 different colors.
What I want is that the color of the lines should be mappable to a colorscale so that color of the line corresponds to the value of the parameter l
on the colorscale. I also want the color scale to appear next to the plot.
How to do this? Thanks