Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: splot centers at bottom of plot Date: Sun, 09 Dec 2012 18:30:40 +0100 Lines: 21 Message-ID: References: <462ee242-af3a-40a9-ba9d-30035726db0e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.dfncis.de ufWFDekqSdqEWc6PtoXP3w5MmeEZSf82UQFymj3v7EBmRtnnjqLYSIBIHiNnyo8MET01EaLoUm Cancel-Lock: sha1:qLD8Qn4A1ht9tp0EYwr+URBjJu4= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <462ee242-af3a-40a9-ba9d-30035726db0e@googlegroups.com> Xref: csiph.com comp.graphics.apps.gnuplot:1532 On 07.12.2012 22:34, al-iyaz@xs4all.nl wrote: > When plotting 3d points the plot is centered such that the bottom of > the plot is in the center of the graph. Actually, that only happens with 'set view equal'. It's a side effect of conflicting goals. In a nutshell, the thing that's supposed to rotate keeps changing shape while rotating. That means there is not really any center of rotation --- because the behaviour in this case is not actually a rotation. > By adding the following line of code to the do_3dplot function in > graph3d.c the plot center becomes centered in the window : > zcenter3d = -(ceiling_z - floor_z) / 2.0 * zscale3d + 1; > Should I send this as a patch via the sourceforge page? Yes, please. An actual patch (i.e. the product of a diff -c original changed) would be good.