X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fcharts%2Fplot-hist.c;h=34c98aa2baaff6f8bb6fd398ad66c281048a6d72;hb=c9aa2a83f27a47bbb33969e6115e99fe049001b4;hp=b7586a18f102980e5b902059ee0ebf58a45a418b;hpb=e9fc76ec1091b47b92aeb2143d6159dacf3b70b2;p=pspp-builds.git diff --git a/src/output/charts/plot-hist.c b/src/output/charts/plot-hist.c index b7586a18..34c98aa2 100644 --- a/src/output/charts/plot-hist.c +++ b/src/output/charts/plot-hist.c @@ -50,7 +50,7 @@ histogram_write_legend (cairo_t *cr, const struct chart_geometry *geom, { char *buf = xasprintf ("N = %.2f", n); cairo_move_to (cr, geom->legend_left, y); - chart_label (cr, 'l', 'b', buf); + chart_label (cr, 'l', 'b', geom->font_size, buf); y += geom->font_size * 1.5; free (buf); } @@ -59,7 +59,7 @@ histogram_write_legend (cairo_t *cr, const struct chart_geometry *geom, { char *buf = xasprintf ("Mean = %.1f", mean); cairo_move_to (cr,geom->legend_left, y); - chart_label (cr, 'l', 'b', buf); + chart_label (cr, 'l', 'b', geom->font_size, buf); y += geom->font_size * 1.5; free (buf); } @@ -68,7 +68,7 @@ histogram_write_legend (cairo_t *cr, const struct chart_geometry *geom, { char *buf = xasprintf ("Std. Dev = %.2f", stddev); cairo_move_to (cr, geom->legend_left, y); - chart_label (cr, 'l', 'b', buf); + chart_label (cr, 'l', 'b', geom->font_size, buf); free (buf); }