From: Tobias Oetiker Date: Wed, 13 Apr 2005 22:00:20 +0000 (+0000) Subject: * draw the axis last to have them always on top X-Git-Tag: 1.2rc9~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=584334e1181ee709115eebd52a35d825208c2498;p=thirdparty%2Frrdtool-1.x.git * draw the axis last to have them always on top * use a smaller font for labeling the axis git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@406 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2fd703eb..97ede521 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -36,7 +36,7 @@ text_prop_t text_prop[] = { { 8.0, RRD_DEFAULT_FONT }, /* default */ { 9.0, RRD_DEFAULT_FONT }, /* title */ - { 8.0, RRD_DEFAULT_FONT }, /* axis */ + { 7.0, RRD_DEFAULT_FONT }, /* axis */ { 8.0, RRD_DEFAULT_FONT }, /* unit */ { 8.0, RRD_DEFAULT_FONT } /* legend */ }; @@ -2540,12 +2540,14 @@ graph_paint(image_desc_t *im, char ***calcpr) } #endif - if( !(im->extra_flags & ONLY_GRAPH) ) - axis_paint(im); /* grid_paint also does the text */ if( !(im->extra_flags & ONLY_GRAPH) ) grid_paint(im); + + + if( !(im->extra_flags & ONLY_GRAPH) ) + axis_paint(im); /* the RULES are the last thing to paint ... */ for(i=0;igdes_c;i++){