|
From: Shigeharu T. <sh...@ie...> - 2006-04-03 14:06:14
|
shige 04/03 2006
----------------
There may be no difference between gnuplot-4.0 and cvs version
for the followings:
set size 0.3 0.6
set origin 0.2,0.2
plot x
But a difference appears when we use the ratio option of
"set size":
set size ratio 1 0.3 0.6
set origin 0.2,0.2
plot x
The graph of cvs version is upper than the one of gnuplot-4.0.
This may be caused by the following code in src/graphics.c
(rev. 1.181, line 900-915):
if (current > required) {
/* too tall */
int height = plot_bounds.ytop - plot_bounds.ybot;
plot_bounds.ytop = plot_bounds.ybot + required *
(plot_bounds.xright - plot_bounds.xleft);
height -= (plot_bounds.ytop - plot_bounds.ybot);
height /= 2;
plot_bounds.ytop += height;
plot_bounds.ybot += height;
} else {
int width = plot_bounds.xright - plot_bounds.xleft;
plot_bounds.xright = plot_bounds.xleft +
(plot_bounds.ytop - plot_bounds.ybot) / required;
width -= (plot_bounds.xright - plot_bounds.xleft);
width /= 2;
plot_bounds.xright += width;
plot_bounds.xleft += width;
}
This may move the left bottom point of the graph even if the
origin is set at desired point. I think this may cause some
problems when user decides the origin.
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
sh...@ie... TEL(&FAX): +81-257-22-8161
+========================================================+
|