piechart: Fix spelling of "magnitude".
[pspp-builds.git] / src / output / charts / plot-hist.h
index c674aa609fa19968eac8eb0917b2a09933fa058c..74b10bd3cfd98bd3eec5434d3c22ebedfe2295f0 100644 (file)
@@ -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
 #ifndef PLOT_HIST_H
 #define PLOT_HIST_H
 
-#include <config.h>
-#include <gsl/gsl_histogram.h>
+#include <stdbool.h>
 
-
-struct normal_curve
-{
-  double N ;
-  double mean ;
-  double stddev ;
-};
 struct chart;
-
-/* Write the legend of the chart */
-void histogram_write_legend(struct chart *ch, const struct normal_curve *norm);
-
-void histogram_plot(const gsl_histogram *hist,
-              const char *factorname,
-              const struct normal_curve *norm, short show_normal);
-
+struct moments1;
+struct histogram;
+
+/* Plots a histogram of the data in HIST with the given LABEL.
+   Labels the histogram with each of N, MEAN, and STDDEV that is
+   not SYSMIS.  If all three are not SYSMIS and SHOW_NORMAL is
+   true, also draws a normal curve on the histogram. */
+void
+histogram_plot (const struct histogram *hist,
+                const char *label,
+                double n, double mean, double stddev,
+                bool show_normal);
 
 #endif