X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fplot-chart.h;h=1521777c4605da414a3cc85b1fc12d0c58b97e0a;hb=f5c108becd49d78f4898cab11352291f5689d24e;hp=ffcf3b0180f7e807969d38fbe282a5d97fcaffb4;hpb=000e3e8c5818476c3afbc75fad9347aefb6e902a;p=pspp-builds.git diff --git a/src/output/charts/plot-chart.h b/src/output/charts/plot-chart.h index ffcf3b01..1521777c 100644 --- a/src/output/charts/plot-chart.h +++ b/src/output/charts/plot-chart.h @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 2004 Free Software Foundation, Inc. - Written by John Darrington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -27,19 +26,20 @@ #include -#include "chart-geometry.h" -#include "chart.h" -#include "str.h" -#include "alloc.h" -#include "manager.h" -#include "output.h" +#include +#include + +#include +#include +#include +#include #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, @@ -50,9 +50,9 @@ enum tick_orientation { /* 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, ...); @@ -67,5 +67,9 @@ void chart_write_xscale(struct chart *ch, double min, double max, int ticks); /* 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