1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 2005 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/>. */
18 /* Stubs for plotting routines.
19 This module is linked only when charts are not supported */
22 #include <output/chart.h>
23 #include <output/charts/box-whisker.h>
24 #include <output/charts/piechart.h>
25 #include <output/charts/plot-chart.h>
26 #include <output/charts/plot-hist.h>
27 #include <output/charts/cartesian.h>
28 #include <gsl/gsl_histogram.h>
29 #include <libpspp/compiler.h>
32 #error This file should be used only when compiling without charts.
43 chart_write_title(struct chart *chart UNUSED, const char *title UNUSED, ...)
49 chart_submit(struct chart *chart UNUSED)
55 chart_write_xscale(struct chart *ch UNUSED,
56 double min UNUSED, double max UNUSED, int ticks UNUSED)
62 chart_write_yscale(struct chart *ch UNUSED UNUSED,
63 double smin UNUSED, double smax UNUSED, int ticks UNUSED)
69 chart_write_xlabel(struct chart *ch UNUSED, const char *label UNUSED)
74 chart_write_ylabel(struct chart *ch UNUSED, const char *label UNUSED)
80 chart_line(struct chart *ch UNUSED,
81 double slope UNUSED, double intercept UNUSED,
82 double limit1 UNUSED, double limit2 UNUSED,
83 enum CHART_DIM lim_dim UNUSED)
89 chart_datum(struct chart *ch UNUSED, int dataset UNUSED UNUSED,
90 double x UNUSED, double y UNUSED)
97 histogram_plot(const gsl_histogram *hist UNUSED,
98 const char *factorname UNUSED,
99 const struct normal_curve *norm UNUSED,
100 short show_normal UNUSED)
105 boxplot_draw_yscale(struct chart *ch UNUSED,
106 double y_max UNUSED, double y_min UNUSED)
111 boxplot_draw_boxplot(struct chart *ch UNUSED,
112 double box_centre UNUSED,
113 double box_width UNUSED,
114 struct metrics *m UNUSED,
115 const char *name UNUSED)
122 piechart_plot(const char *title UNUSED,
123 const struct slice *slices UNUSED, int n_slices UNUSED)