X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fscatterplot.h;h=a78227dabc622badc9c8c765a328fffb63652d92;hb=08959981d167390d9c9ba0ac5a8a2558de9175af;hp=e95562bbad9150d7032e9fadb24920d6dfff6f96;hpb=80595f6de2ea8f0b64756d76c7ac3c89a1abbbb8;p=pspp diff --git a/src/output/charts/scatterplot.h b/src/output/charts/scatterplot.h index e95562bbad..a78227dabc 100644 --- a/src/output/charts/scatterplot.h +++ b/src/output/charts/scatterplot.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2014 Free Software Foundation, Inc. + Copyright (C) 2014, 2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,12 +19,22 @@ #include "output/chart-item.h" +/* Indices for the scatterplot_proto members */ +enum + { + SP_IDX_X, /* x value */ + SP_IDX_Y, /* y value */ + SP_IDX_BY, /* graph category for xy plot */ + }; + /* A scatterplot. */ struct scatterplot_chart { struct chart_item chart_item; struct casereader *data; - const struct variable *xvar, *yvar, *byvar; + struct variable *byvar; + char *xlabel; + char *ylabel; double y_min, y_max; double x_min, x_max; @@ -35,9 +45,9 @@ struct scatterplot_chart }; struct scatterplot_chart * -scatterplot_create (const struct casereader *, - const struct variable *, - const struct variable *, +scatterplot_create (struct casereader *, + const char *xlabel, + const char *ylabel, const struct variable *, bool *, const char *label,