Code

add some more vertical space above the graph if no title is available
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 1 May 2005 22:04:34 +0000 (22:04 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 1 May 2005 22:04:34 +0000 (22:04 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@471 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 2745ae959edf949bd8d83920c29777aa8ead1d6e..d531430eec9b956ca736f501f96b806d2ad7436c 100644 (file)
@@ -2237,8 +2237,8 @@ graph_size_location(image_desc_t *im, int elements
        im->yimg += Ytitle;
        im->yorigin += Ytitle;
     } else {
-       im->yimg += Yspacing;
-       im->yorigin += Yspacing;
+       im->yimg += 1.5*Yspacing;
+       im->yorigin += 1.5*Yspacing;
     }
     /* reserve space for padding below the graph */
     im->yimg += Yspacing;