#ifndef CHART_H
#define CHART_H
+#include <config.h>
#include <stdio.h>
-#include <plot.h>
#include <gsl/gsl_histogram.h>
-
#include "var.h"
+#ifndef NO_CHARTS
+#include <plot.h>
+#endif
+
/* Array of standard colour names */
extern const char *data_colour[];
struct chart {
+#ifndef NO_CHARTS
plPlotter *lp ;
plPlotterParams *pl_params;
+#else
+ void *lp;
+#endif
+ char *filename;
/* The geometry of the chart
See diagram at the foot of this file.
char fill_colour[10];
- /* Stuff Particular to Cartesians */
+ /* Stuff Particular to Cartesians (and Boxplots ) */
double ordinate_scale;
double abscissa_scale;
double x_min;
};
-int chart_initialise(struct chart *ch);
-
-void chart_finalise(struct chart *ch);
-
+struct chart * chart_create(void);
+void chart_submit(struct chart *ch);
double chart_rounded_tick(double tick);
void chart_datum(struct chart *ch, int dataset, double x, double y);
+struct metrics;
+
+
+void boxplot_draw_boxplot(struct chart *ch,
+ double box_centre,
+ double box_width,
+ struct metrics *m,
+ const char *name);
+
+void boxplot_draw_yscale(struct chart *ch , double y_max, double y_min);
enum CHART_DIM