Fix problem building with --without-libplot
[pspp-builds.git] / src / output / charts / dummy-chart.c
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 2005 Free Software Foundation, Inc.
3
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.
8
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.
13
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/>. */
16
17
18 /* Stubs for plotting routines.
19    This module is linked only when charts are not supported */
20
21 #include "config.h"
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>
30
31 #ifndef NO_CHARTS
32 #error This file should be used only when compiling without charts.
33 #endif
34
35 void
36 chart_write_legend (struct chart *ch UNUSED)
37 {
38 }
39
40 void
41 chart_vector (struct chart *ch UNUSED, double x UNUSED, double y UNUSED)
42 {
43 }
44
45 void
46 chart_vector_end (struct chart *ch UNUSED)
47 {
48 }
49
50 void
51 chart_vector_start (struct chart *ch UNUSED, const char *name UNUSED)
52 {
53 }
54
55 void
56 chart_write_title (struct chart *chart UNUSED, const char *title UNUSED, ...)
57 {
58 }
59
60
61 void
62 chart_write_xscale (struct chart *ch UNUSED,
63                     double min UNUSED, double max UNUSED, int ticks UNUSED)
64 {
65 }
66
67
68 void
69 chart_write_yscale (struct chart *ch UNUSED UNUSED,
70                     double smin UNUSED, double smax UNUSED, int ticks UNUSED)
71 {
72 }
73
74
75 void
76 chart_write_xlabel (struct chart *ch UNUSED, const char *label UNUSED)
77 {
78 }
79
80 void
81 chart_write_ylabel (struct chart *ch UNUSED, const char *label UNUSED)
82 {
83 }
84
85
86 void
87 chart_line (struct chart *ch UNUSED,
88             double slope UNUSED, double intercept UNUSED,
89             double limit1 UNUSED, double limit2 UNUSED,
90             enum CHART_DIM lim_dim UNUSED)
91 {
92 }
93
94
95 void
96 chart_datum (struct chart *ch UNUSED, int dataset UNUSED UNUSED,
97              double x UNUSED, double y UNUSED)
98 {
99 }
100
101 void
102 histogram_plot (const struct histogram *hist UNUSED,
103                 const char *label UNUSED,
104                 const struct moments1 *m UNUSED)
105 {
106 }
107
108 void
109 histogram_plot_n (const struct histogram *hist UNUSED,
110                   const char *label UNUSED,
111                   double n UNUSED, double mean UNUSED, double stddev UNUSED,
112                   bool show_normal UNUSED)
113 {
114 }
115
116
117 void
118 boxplot_draw_yscale (struct chart *ch UNUSED,
119                      double y_max UNUSED, double y_min UNUSED)
120 {
121 }
122
123 void
124 boxplot_draw_boxplot (struct chart *ch UNUSED,
125                       double box_centre UNUSED,
126                       double box_width UNUSED,
127                       const struct box_whisker *w UNUSED,
128                       const char *name UNUSED)
129 {
130 }
131
132
133
134
135 void
136 piechart_plot (const char *title UNUSED,
137                const struct slice *slices UNUSED, int n_slices UNUSED)
138 {
139 }