/* PSPP - computes sample statistics.
Copyright (C) 2004 Free Software Foundation, Inc.
- Written by John Darrington <john@darrington.wattle.id.au>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
#ifndef PLOT_CHART_H
#define PLOT_CHART_H
-
-extern const char *data_colour[];
+
+extern const char *const data_colour[];
enum tick_orientation {
TICK_ABSCISSA=0,
/* Draw a tick mark at position
If label is non zero, then print it at the tick mark
*/
-void draw_tick(struct chart *chart,
- enum tick_orientation orientation,
- double position,
+void draw_tick(struct chart *chart,
+ enum tick_orientation orientation,
+ double position,
const char *label, ...);
/* Set the scale for the ordinate */
void chart_write_yscale(struct chart *ch, double smin, double smax, int ticks);
+void chart_write_xlabel(struct chart *ch, const char *label) ;
+
+/* Write the ordinate label */
+void chart_write_ylabel(struct chart *ch, const char *label);
#endif