Removed my authorship lines.
[pspp] / 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/plot-chart.h>
26 #include <output/charts/cartesian.h>
27 #include <gsl/gsl_histogram.h>
28 #include <libpspp/compiler.h>
29
30
31 #ifndef NO_CHARTS
32 #error This file should be used only when compiling without charts.
33 #endif
34
35 struct chart *
36 chart_create(void)
37 {
38   return 0;
39 }
40
41
42 void  
43 chart_write_title(struct chart *chart, const char *title, ...)
44 {
45 }
46
47
48 void
49 chart_submit(struct chart *chart)
50 {
51 }
52
53
54 void 
55 chart_write_xscale(struct chart *ch, double min, double max, int ticks)
56 {
57 }
58
59
60 void 
61 chart_write_yscale(struct chart *ch, double smin, double smax, int ticks)
62 {
63 }
64
65
66 void 
67 chart_write_xlabel(struct chart *ch, const char *label)
68 {
69 }
70
71 void 
72 chart_write_ylabel(struct chart *ch, const char *label)
73 {
74 }
75
76
77 void
78 chart_line(struct chart *ch, double slope, double intercept, 
79            double limit1, double limit2, enum CHART_DIM lim_dim)
80 {
81 }
82
83
84 void
85 chart_datum(struct chart *ch, int dataset UNUSED, double x, double y)
86 {
87 }
88
89 struct normal_curve;
90
91 void
92 histogram_plot(const gsl_histogram *hist,
93                const char *factorname,
94                const struct normal_curve *norm, short show_normal)
95 {
96 }
97
98 void
99 boxplot_draw_yscale(struct chart *ch , double y_max, double y_min)
100 {
101 }
102
103 void 
104 boxplot_draw_boxplot(struct chart *ch,
105                      double box_centre, 
106                      double box_width,
107                      struct metrics *m,
108                      const char *name)
109 {
110 }
111
112
113
114 void
115 piechart_plot(const char *title, const struct slice *slices, int n_slices)
116 {
117 }