X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Foutput%2Fcharts%2Fcartesian.h;h=0874b9cc61d4d8f507188a00f07c44ca614176cf;hb=b5c82cc9aabe7e641011130240ae1b2e84348e23;hp=9f68ba14857cd3e6ad2bc3dda62cf6bd2d94e0a4;hpb=000e3e8c5818476c3afbc75fad9347aefb6e902a;p=pspp-builds.git diff --git a/src/output/charts/cartesian.h b/src/output/charts/cartesian.h index 9f68ba14..0874b9cc 100644 --- a/src/output/charts/cartesian.h +++ b/src/output/charts/cartesian.h @@ -1,21 +1,18 @@ -/* PSPP - computes sample statistics. +/* PSPP - a program for statistical analysis. 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 - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. 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., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ @@ -30,22 +27,19 @@ enum CHART_DIM }; -/* Write the abscissa label */ -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_vector_start (struct chart *ch, const char *name); +void chart_vector (struct chart *ch, double x, double y); +void chart_vector_end (struct chart *ch); /* Plot a data point */ -void chart_datum(struct chart *ch, int dataset UNUSED, double x, double y); +void chart_datum (struct chart *ch, int dataset UNUSED, double x, double y); /* Draw a line with slope SLOPE and intercept INTERCEPT. between the points limit1 and limit2. - If lim_dim is CHART_DIM_Y then the limit{1,2} are on the + If lim_dim is CHART_DIM_Y then the limit{1,2} are on the y axis otherwise the x axis */ -void chart_line(struct chart *ch, double slope, double intercept, +void chart_line (struct chart *ch, double slope, double intercept, double limit1, double limit2, enum CHART_DIM lim_dim);