Is it possible to mix a 3D plot (made with splot) and parametric plot
to draw intersection for example.
I try this but it doesn't work :
splot [-5:5] [-5:5] x**2+y**2
set parametric
set dummy 'u'
replot 5*cos(u),5*sin(u),25
I get the following age
,----
| gnuplot> replot 5*cos(u),5*sin(u),25
| parametric function not fully specified
`----
thank's
ph
Is it possible to mix a 3D plot (made with splot) and parametric plot
to draw intersection for example.
I try this but it doesn't work :
splot [-5:5] [-5:5] x**2+y**2
set parametric
set dummy 'u'
replot 5*cos(u),5*sin(u),25
I get the following message
> Is it possible to mix a 3D plot (made with splot) and parametric plot
> to draw intersection for example.
Your parametric plot is 3D, too, so the question doesn't quite make
sense.
> I try this but it doesn't work :
> splot [-5:5] [-5:5] x**2+y**2
> set parametric
> set dummy 'u'
> replot 5*cos(u),5*sin(u),25
> I get the following message
> ,----
> | gnuplot> replot 5*cos(u),5*sin(u),25
> | parametric function not fully specified
> `----
That's because the *first* function you plotted has to be specified as
a parametric function, too. Try this:
set parametric
plot [-5:5][-5:5] \
u, v, u*u+v*v title 'Circular paraboloid', \
5*cos(u), 5*sin(u), 25 title 'a curve in space'
You may have to adjust the und v ranges of the two plot relative to each
other.
--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
You're getting this message because `replot` simply appends its
arguments (if any) to the previous `plot` command, then executes the
resulting string. In your case, the result is
plot x**2+y**2, 5*cos(u),5*cos(u),5
which is a mixture of non-parametric and parametric functions. You
have to re-cast your first function into a parametric function, like
so:
plot u,v,u**2+v**2, 5*cos(u),5*cos(u),5
THeo
PS: Your `set dummy` command is redundant; `set parametric`
automatically makes u and v the dummy variables for splots.
> You're getting this message because `replot` simply appends its
> arguments (if any) to the previous `plot` command, then executes the
> resulting string. In your case, the result is
>
> plot x**2+y**2, 5*cos(u),5*cos(u),5
>
> which is a mixture of non-parametric and parametric functions. You
> have to re-cast your first function into a parametric function, like
> so:
>
> plot u,v,u**2+v**2, 5*cos(u),5*cos(u),5
>
> THeo
>
> PS: Your `set dummy` command is redundant; `set parametric`
> automatically makes u and v the dummy variables for splots.
Ok. Thank you
--
Philippe Monroux
Ile de la Reunion
E 55.3 S 21.5
> Your parametric plot is 3D, too, so the question doesn't quite make
> sense.
> That's because the *first* function you plotted has to be specified as
> a parametric function, too. Try this:
> set parametric
> plot [-5:5][-5:5] \
> u, v, u*u+v*v title 'Circular paraboloid', \
> 5*cos(u), 5*sin(u), 25 title 'a curve in space'
> You may have to adjust the und v ranges of the two plot relative to each
> other.
Ok thank you