diff options
author | Thomas White <taw@physics.org> | 2011-07-27 16:16:15 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:34 +0100 |
commit | 58ac31bcd6a92048b49fcbb8824f2600cbb76dea (patch) | |
tree | eaba342e3ac87078be1f74e394bade88bad147af /src/scaling-report.c | |
parent | 1944df79f73433e8c63c3a0083df37c059fbc383 (diff) |
Fix alignment of line in partiality graphs
Diffstat (limited to 'src/scaling-report.c')
-rw-r--r-- | src/scaling-report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scaling-report.c b/src/scaling-report.c index 0912e1dc..0b733e05 100644 --- a/src/scaling-report.c +++ b/src/scaling-report.c @@ -238,7 +238,7 @@ static void partiality_graph(cairo_t *cr, const struct image *images, int n, cairo_move_to(cr, 0.0, g_height); for ( i=0; i<nbins; i++ ) { if ( counts[i] == 0 ) continue; - cairo_line_to(cr, g_width*(double)i/nbins, + cairo_line_to(cr, g_width*((double)i+0.5)/nbins, g_height - g_height*(totals[i]/counts[i])); } cairo_set_source_rgb(cr, 0.0, 0.0, 0.0); |