## gnuplot-info

 [Gnuplot-info] Independently changing dummy variables From: Clement Law - 2012-10-08 10:49:57 ```Hello, I'm trying to plot three spheres using set parametric. At the moment, I have this small script: ##### set parametric; set angle degree fx(u,v)=0.4*cos(u)*cos(v)+0.34 fy(u,v)=0.4*sin(u)*cos(v)+0.366 fz(v)=0.4*sin(v) gx(u,v)=0.7*cos(u)*cos(v) gy(u,v)=0.7*sin(u)*cos(v) gz(v)=0.7*sin(v) hx(u,v)=0.5*cos(u)*cos(v) hy(u,v)=0.5*sin(u)*cos(v) hz(v)=0.5*sin(v) splot fx(u,v),fy(u,v),fz(v),\ gx(u,v),gy(u,v),gz(v),\ hx(u,v),hy(u,v),hz(v) ###### Is there any way of independently changing the ranges of the dummy variables for each sphere? Thanks, Clement Law ```
 Re: [Gnuplot-info] Independently changing dummy variables From: Hans-Bernhard Bröker - 2012-10-08 18:53:34 ```On 08.10.2012 12:49, Clement Law wrote: > splot fx(u,v),fy(u,v),fz(v),\ > gx(u,v),gy(u,v),gz(v),\ > hx(u,v),hy(u,v),hz(v) > Is there any way of independently changing the ranges of the dummy > variables for each sphere? Well, there's no particular reason you have to use 'u' and 'v' as-is. You can re-define your functions fx(u,v), or you can call them with arguments other than plain 'u' and 'v': set urange[0:1] set vrange[0:1] splot fx(0.2*u+1,v), fy(0.2*u+1,v), fz(v) etc. ```