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