From 6bc821bd8647de03b9f365160fc3d492dc6a54bd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 13 Apr 2012 13:54:02 +0200 Subject: [PATCH] graph: tighten up tickmark lines a bit Still have a fuzzy feel at some of the boundaries, not sure why yet. Signed-off-by: Jens Axboe --- graph.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/graph.c b/graph.c index 040e344f..06cfb1ac 100644 --- a/graph.c +++ b/graph.c @@ -343,15 +343,15 @@ static void graph_draw_x_ticks(struct graph *g, cairo_t *cr, continue; /* Draw tick mark */ - cairo_set_line_width(cr, 0.8); + cairo_set_line_width(cr, 1.0); cairo_move_to(cr, tx, y2); cairo_line_to(cr, tx, y2 + (y2 - y1) * 0.03); cairo_stroke(cr); /* draw grid lines */ cairo_save(cr); - cairo_set_dash(cr, dash, 2, 2.0); - cairo_set_line_width(cr, 0.5); + cairo_set_dash(cr, dash, 2, 0.66); + cairo_set_line_width(cr, 0.33); cairo_move_to(cr, tx, y1); cairo_line_to(cr, tx, y2); cairo_stroke(cr); @@ -373,7 +373,7 @@ static double graph_draw_y_ticks(struct graph *g, cairo_t *cr, struct tickmark *tm; double ty; int i, power_of_ten; - static double dash[] = { 2.0, 2.0 }; + static double dash[] = { 1.0, 2.0 }; nticks = calc_tickmarks(miny, maxy, nticks, &tm, &power_of_ten, g->y_axis_unit_change_callback == NULL, g->base_offset); @@ -412,8 +412,8 @@ static double graph_draw_y_ticks(struct graph *g, cairo_t *cr, /* draw grid lines */ cairo_save(cr); - cairo_set_dash(cr, dash, 2, 2.0); - cairo_set_line_width(cr, 0.5); + cairo_set_dash(cr, dash, 2, 0.66); + cairo_set_line_width(cr, 0.33); cairo_move_to(cr, x1, ty); cairo_line_to(cr, x2, ty); cairo_stroke(cr); -- 2.25.1