1 --- gnuplot-3.7.1/graphics.c.round Wed Sep 15 09:30:29 1999
2 +++ gnuplot-3.7.1/graphics.c Wed Jun 6 15:59:07 2001
4 /* compute ytop from the various components
5 * unless tmargin is explicitly specified */
7 - ytop = (int) ((ysize + yoffset) * (t->ymax));
8 + /* HBB 20010118: fix round-off bug */
9 + ytop = (int) (0.5 + (ysize + yoffset) * (t->ymax));
12 int top_margin = x2label_textheight + title_textheight;
14 /* compute ybot from the various components
15 * unless bmargin is explicitly specified */
17 - ybot = (int) ((t->ymax) * yoffset);
18 + ybot = (int) (0.5 + (t->ymax) * yoffset);
21 ybot += xtic_height + xtic_textheight;
23 /* compute xleft from the various components
24 * unless lmargin is explicitly specified */
26 - xleft = (int) ((t->xmax) * xoffset);
27 + xleft = (int) (0.5 + (t->xmax) * xoffset);
30 xleft += (timelabel_textwidth > ylabel_textwidth ? timelabel_textwidth : ylabel_textwidth)
32 /* compute xright from the various components
33 * unless rmargin is explicitly specified */
35 - xright = (int) ((t->xmax) * (xsize + xoffset));
36 + xright = (int) (0.5 + (t->xmax) * (xsize + xoffset));
39 /* xright -= y2label_textwidth + y2tic_width + y2tic_textwidth; */