X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fchart.h;h=c0ab0a2063106397e8c13205cb378521c0595f6a;hb=d7b5d9144738a5a8989d45a01f4e458a78b68c0b;hp=f2c9e501471151cc7282864f05bda72748070e4f;hpb=379aeac5640a20a122990640fdd33bdfa592a3c1;p=pspp diff --git a/src/chart.h b/src/chart.h index f2c9e50147..c0ab0a2063 100644 --- a/src/chart.h +++ b/src/chart.h @@ -14,19 +14,22 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #ifndef CHART_H #define CHART_H +#include #include -#include #include - #include "var.h" +#ifndef NO_CHARTS +#include +#endif + /* Array of standard colour names */ extern const char *data_colour[]; @@ -34,8 +37,14 @@ extern const char *data_colour[]; struct chart { +#ifndef NO_CHARTS plPlotter *lp ; plPlotterParams *pl_params; +#else + void *lp; +#endif + char *filename; + FILE *file; /* The geometry of the chart See diagram at the foot of this file. @@ -61,7 +70,7 @@ struct chart { char fill_colour[10]; - /* Stuff Particular to Cartesians */ + /* Stuff Particular to Cartesians (and Boxplots ) */ double ordinate_scale; double abscissa_scale; double x_min; @@ -72,10 +81,8 @@ struct chart { }; -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); @@ -166,7 +173,17 @@ void chart_write_yscale(struct chart *ch, 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