-void draw_histogram(struct chart *ch,
- const struct variable *v,
- const char *title,
- struct normal_curve *norm,
- int show_normal);
+void histogram_write_legend(struct chart *ch, const struct normal_curve *norm);
+
+
+/* Plot a gsl_histogram */
+void histogram_plot(const gsl_histogram *hist, const char *factorname,
+ const struct normal_curve *norm, short show_normal);
+
+
+/* Create a gsl_histogram and set it's parameters based upon
+ x_min, x_max and bins.
+ The caller is responsible for freeing the histogram.
+*/
+gsl_histogram * histogram_create(double bins, double x_min, double x_max) ;
+
+
+
+
+
+struct slice {
+ const char *label;
+ double magnetude;
+};
+
+
+
+
+/* Draw a piechart */
+void piechart_plot(const char *title,
+ const struct slice *slices, int n_slices);
+
+void draw_scatterplot(struct chart *ch);
+
+
+void draw_lineplot(struct chart *ch);
+
+
+/* Set the scale on chart CH.
+ The scale extends from MIN to MAX .
+ TICK is the approximate number of tick marks.
+*/
+
+void chart_write_xscale(struct chart *ch,
+ double min, double max, int ticks);
+
+void chart_write_yscale(struct chart *ch,
+ double min, double max, int ticks);
+
+
+void chart_datum(struct chart *ch, int dataset, double x, double y);
+
+struct metrics;
+