X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fcharts%2Fplot-chart.h;h=f4cc5bbf06c3f91650c4988b15e76e36f8efc74a;hb=8e16ce856374ec440157b80ac19ef6dd724a0bd1;hp=958a0dfde925cb3700d9d0a0022d467cd96dcf03;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/output/charts/plot-chart.h b/src/output/charts/plot-chart.h index 958a0dfd..f4cc5bbf 100644 --- a/src/output/charts/plot-chart.h +++ b/src/output/charts/plot-chart.h @@ -14,7 +14,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #include #include #include @@ -28,21 +27,22 @@ #include #include -#include #include #include +#include "xalloc.h" #ifndef PLOT_CHART_H #define PLOT_CHART_H - +#define N_CHART_COLOURS 9 extern const char *const data_colour[]; -enum tick_orientation { - TICK_ABSCISSA=0, - TICK_ORDINATE -}; +enum tick_orientation + { + TICK_ABSCISSA=0, + TICK_ORDINATE + }; /* Draw a tick mark at position @@ -70,4 +70,6 @@ void chart_write_xlabel(struct chart *ch, const char *label) ; /* Write the ordinate label */ void chart_write_ylabel(struct chart *ch, const char *label); +void chart_write_legend (struct chart *ch); + #endif