|
From: Carles P. i E. <ca...@pi...> - 2007-01-17 18:09:37
|
Hello, I am not able to plot cylinder using cartesian system (I think that is not possible in gnuplot?) I am trying to do the figures that I need using parametric coordinate. I have done without problemes sphere, cylinder but I need cone. Here for example: http://mathworld.wolfram.com/Cone.html There is the parametric equations (equations number 1, 2 and 3). I do in gnuplot: set parametric set isosample 51 set ticslevel 0 h=2.0 r=1.0 splot ((h-u)/h)*r*cos(u), ((h-u)/h)*r*sin(u),v pause -1 And something appears but doesn't look as a cone :-) Any idea? the formula seems correct, Maybe range problem for u and v? Thank you very much, -- Carles Pina i Estany GPG id: 0x8CBDAE64 http://pinux.info Manresa - Barcelona |