X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fplot-hist.c;h=fbf1925e635e165c3c096d119bace8123fa0d5bc;hb=58e00a3068cffe79b28c195b58841edb617d995e;hp=e7dcd438d84e589197dec09089d4993b70937756;hpb=015e221b0f8578afee769528572c76387f26c629;p=pspp-builds.git diff --git a/src/output/charts/plot-hist.c b/src/output/charts/plot-hist.c index e7dcd438..fbf1925e 100644 --- a/src/output/charts/plot-hist.c +++ b/src/output/charts/plot-hist.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -99,12 +99,8 @@ hist_draw_bar (struct chart *ch, const struct histogram *hist, int bar) pl_restorestate_r (ch->lp); - { - char buf[5]; - snprintf (buf,5,"%g", (upper + lower) / 2.0); - draw_tick (ch, TICK_ABSCISSA, - x_pos + width / 2.0, buf); - } + draw_tick (ch, TICK_ABSCISSA, + x_pos + width / 2.0, "%g", (upper + lower) / 2.0); } } @@ -122,6 +118,8 @@ histogram_plot (const struct histogram *hist, histogram_plot_n (hist, label, n, mean, sqrt(var), m); } + +/* This function is deprecated. Don't use it in new code */ void histogram_plot_n (const struct histogram *hist, const char *label,