1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 2004, 2009 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 #ifndef OUTPUT_CHART_PROVIDER_H
18 #define OUTPUT_CHART_PROVIDER_H 1
22 #include <output/chart.h>
31 /* The geometry of a chart. */
48 /* Default font size for the plot (if zero, then use plotter default) */
51 struct chart_colour fill_colour;
53 /* Stuff Particular to Cartesians (and Boxplots ) */
54 double ordinate_scale;
55 double abscissa_scale;
64 void (*draw) (const struct chart *, plPlotter *, struct chart_geometry *);
65 void (*destroy) (struct chart *);
70 const struct chart_class *class;
74 void chart_init (struct chart *, const struct chart_class *);
75 bool chart_create_file (const char *type, const char *file_name_tmpl,
76 int number, plPlotterParams *,
77 char **file_namep, plPlotter **lpp);
79 void chart_geometry_init (plPlotter *, struct chart_geometry *,
80 double width, double length);
81 void chart_geometry_free (plPlotter *);
83 void chart_draw (const struct chart *, plPlotter *, struct chart_geometry *);
85 #endif /* output/chart-provider.h */