Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1532

Re: splot centers at bottom of plot

From Hans-Bernhard Bröker <HBBroeker@t-online.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: splot centers at bottom of plot
Date 2012-12-09 18:30 +0100
Message-ID <aik060Fo1chU1@mid.dfncis.de> (permalink)
References <462ee242-af3a-40a9-ba9d-30035726db0e@googlegroups.com>

Show all headers | View raw


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.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

splot centers at bottom of plot al-iyaz@xs4all.nl - 2012-12-07 13:34 -0800
  Re: splot centers at bottom of plot Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-12-09 18:30 +0100
    Re: splot centers at bottom of plot al-iyaz@xs4all.nl - 2012-12-15 03:42 -0800

csiph-web