Code

tune fontsizes and spacing to be more in line with rrdtool 1.0
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 13 Apr 2005 19:53:16 +0000 (19:53 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Wed, 13 Apr 2005 19:53:16 +0000 (19:53 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@404 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 95ba70df452e835e28122abf946e4c2e1ca281b6..2fd703eb34ca7e78b8216bc3c664cc623de4da9a 100644 (file)
 #endif
 
 text_prop_t text_prop[] = {   
-     { 9.0, RRD_DEFAULT_FONT }, /* default */
-     { 11.0, RRD_DEFAULT_FONT }, /* title */
+     { 8.0, RRD_DEFAULT_FONT }, /* default */
+     { 9.0, RRD_DEFAULT_FONT }, /* title */
      { 8.0,  RRD_DEFAULT_FONT }, /* axis */
-     { 9.0, RRD_DEFAULT_FONT }, /* unit */
-     { 9.0, RRD_DEFAULT_FONT }  /* legend */
+     { 8.0, RRD_DEFAULT_FONT }, /* unit */
+     { 8.0, RRD_DEFAULT_FONT }  /* legend */
 };
 
 xlab_t xlab[] = {
@@ -1497,7 +1497,7 @@ leg_place(image_desc_t *im)
                   + legspace[ii]
                   + glue;
            }                   
-           leg_y += im->text_prop[TEXT_PROP_LEGEND].size*1.7;
+           leg_y += im->text_prop[TEXT_PROP_LEGEND].size*1.8;
            if (prt_fctn == 's') leg_y -=  im->text_prop[TEXT_PROP_LEGEND].size;           
            fill = 0;
            leg_c = 0;
@@ -2762,7 +2762,7 @@ rrd_graph_init(image_desc_t *im)
     im->minval = DNAN;
     im->maxval = DNAN;    
     im->unitsexponent= 9999;
-    im->unitslength= 5
+    im->unitslength= 6
     im->symbol = ' ';
     im->viewfactor = 1.0;
     im->extra_flags= 0;