78e6c1b20bad0b0bcfd14ec467f5d906278d1c25
[pspp-builds.git] / src / output / charts / dummy-chart.c
1 /* PSPP - computes sample statistics.
2    Copyright (C) 2005 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or
5    modify it under the terms of the GNU General Public License as
6    published by the Free Software Foundation; either version 2 of the
7    License, or (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful, but
10    WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17    02110-1301, USA. */
18
19
20 /* Stubs for plotting routines.
21    This module is linked only when charts are not supported */
22
23 #include "config.h"
24 #include <output/chart.h>
25 #include <output/charts/box-whisker.h>
26 #include <output/charts/piechart.h>
27 #include <output/charts/plot-chart.h>
28 #include <output/charts/plot-hist.h>
29 #include <output/charts/cartesian.h>
30 #include <gsl/gsl_histogram.h>
31 #include <libpspp/compiler.h>
32
33 #ifndef NO_CHARTS
34 #error This file should be used only when compiling without charts.
35 #endif
36
37 struct chart *
38 chart_create(void)
39 {
40   return 0;
41 }
42
43
44 void
45 chart_write_title(struct chart *chart UNUSED, const char *title UNUSED, ...)
46 {
47 }
48
49
50 void
51 chart_submit(struct chart *chart UNUSED)
52 {
53 }
54
55
56 void
57 chart_write_xscale(struct chart *ch UNUSED,
58                    double min UNUSED, double max UNUSED, int ticks UNUSED)
59 {
60 }
61
62
63 void
64 chart_write_yscale(struct chart *ch UNUSED UNUSED,
65                    double smin UNUSED, double smax UNUSED, int ticks UNUSED)
66 {
67 }
68
69
70 void
71 chart_write_xlabel(struct chart *ch UNUSED, const char *label UNUSED)
72 {
73 }
74
75 void
76 chart_write_ylabel(struct chart *ch UNUSED, const char *label UNUSED)
77 {
78 }
79
80
81 void
82 chart_line(struct chart *ch UNUSED,
83            double slope UNUSED, double intercept UNUSED,
84            double limit1 UNUSED, double limit2 UNUSED,
85            enum CHART_DIM lim_dim UNUSED)
86 {
87 }
88
89
90 void
91 chart_datum(struct chart *ch UNUSED, int dataset UNUSED UNUSED,
92             double x UNUSED, double y UNUSED)
93 {
94 }
95
96 struct normal_curve;
97
98 void
99 histogram_plot(const gsl_histogram *hist UNUSED,
100                const char *factorname UNUSED,
101                const struct normal_curve *norm UNUSED,
102                short show_normal UNUSED)
103 {
104 }
105
106 void
107 boxplot_draw_yscale(struct chart *ch UNUSED,
108                     double y_max UNUSED, double y_min UNUSED)
109 {
110 }
111
112 void
113 boxplot_draw_boxplot(struct chart *ch UNUSED,
114                      double box_centre UNUSED,
115                      double box_width UNUSED,
116                      struct metrics *m UNUSED,
117                      const char *name UNUSED)
118 {
119 }
120
121
122
123 void
124 piechart_plot(const char *title UNUSED,
125               const struct slice *slices UNUSED, int n_slices UNUSED)
126 {
127 }