From: Stephen M. Cameron Date: Thu, 8 Mar 2012 15:58:50 +0000 (+0100) Subject: gfio: move graph area a bit to the right X-Git-Tag: gfio-0.1~214 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6bf860089760c72ea22bc74e929080c15cd4c835;p=fio.git gfio: move graph area a bit to the right To make more room for y-axis title text. Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- diff --git a/graph.c b/graph.c index e9fce952..d7bdbe5f 100644 --- a/graph.c +++ b/graph.c @@ -278,11 +278,10 @@ static void graph_draw_common(struct graph *g, cairo_t *cr, cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width (cr, 0.8); - /* for now just set margins at 10% of width. This is not very good. */ - *x1 = g->xdim / 10.0; - *x2 = 9.0 * *x1; - *y1 = g->ydim / 10.0; - *y2 = 9.0 * *y1; + *x1 = 0.15 * g->xdim; + *x2 = 0.95 * g->xdim; + *y1 = 0.10 * g->ydim; + *y2 = 0.90 * g->ydim; cairo_move_to(cr, *x1, *y1); cairo_line_to(cr, *x1, *y2);