|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-12-13 10:52:10
|
Zhong Ren wrote: > Please consider the following script that draws a sphere. Why > the rotation center is not at the center of the sphere, when > the graphics is spun by the mouse? Why should it be? Did you really expect gnuplot to have a special rule like "whenever there is exactly one spherical surface among the plotted things, rotation will magically center around that"? > If not, how is the center selected by Gnuplot? Mouse rotates the entire graph box, so, kind-of obviously, it is centered around the center of the graph box. So if you want rotation to be around a particular point, make all three axis ranges symmetric around it: set xrange [mid_x - size_x : mid_x + size_x] # likewise for y and z |