3 AT_SETUP([GRAPH simple scatterplot])
4 AT_DATA([scatterplot.sps],[
5 * Simple Scatterplot test
9 COMPUTE Age = RV.NORMAL(40,10).
15 COMPUTE Size = Age * 3 + 50.
18 /SCATTERPLOT(BIVARIATE) = Age WITH Size.
22 AT_CHECK([pspp -O format=csv scatterplot.sps], [0], [ignore])
27 AT_SETUP([GRAPH Scatter and Histogram])
28 AT_DATA([scatterlong.sps],[
32 COMPUTE Age = RV.NORMAL(40,10).
33 COMPUTE CityNum = TRUNC(UNIFORM(2.95)).
39 COMPUTE Size = Age * 3 + 50 + 50*CityNum.
50 /SCATTERPLOT(BIVARIATE) = Age WITH Size
53 /SCATTERPLOT(BIVARIATE) = Age WITH CityNum
56 /SCATTERPLOT = CityNum WITH Age
59 /SCATTERPLOT = CityNum WITH Size
62 /SCATTERPLOT(BIVARIATE) = Age WITH Size BY City
65 /SCATTERPLOT(BIVARIATE) = Age WITH Size BY CityNum
68 /CityNum 1 'Rio' 2 'Tokyo' 0 'Mumbai'.
71 /SCATTERPLOT(BIVARIATE) = Age WITH Size BY CityNum
78 AT_CHECK([pspp -O format=pdf scatterlong.sps], [0], [ignore])
81 AT_SETUP([GRAPH missing values don't crash])
82 AT_DATA([scatter.sps], [dnl
83 data list list /x * y *.
94 /scatterplot = x with y.
98 AT_CHECK([pspp -o pspp.pdf scatter.sps])
99 dnl Ignore output -- this is just a no-crash check.
102 AT_SETUP([GRAPH missing=VARIABLE no crash])
103 AT_DATA([scatter.sps], [dnl
104 data list list /x * y *.
115 /scatterplot = x with y
121 AT_CHECK([pspp -o pspp.pdf scatter.sps])
122 dnl Ignore output -- this is just a no-crash check.
125 AT_SETUP([GRAPH missing value in by variable])
126 AT_DATA([scatter.sps], [dnl
127 data list list /x * y * z *.
138 /scatterplot = x with y by z
142 /scatterplot = x with y by z.
145 AT_CHECK([pspp -o pspp.pdf scatter.sps])
146 dnl Ignore output -- this is just a no-crash check.
150 AT_SETUP([GRAPH histogram with null data])
151 AT_DATA([null-hist.sps], [dnl
163 AT_CHECK([pspp -o pspp.pdf null-hist.sps], [0], [ignore])
164 dnl Ignore output -- this is just a no-crash check.
170 AT_SETUP([GRAPH barcharts])
171 AT_CHECK([ln -s $top_srcdir/examples/physiology.sav .], [0])
172 AT_CHECK([ln -s $top_srcdir/examples/repairs.sav .], [0])
174 AT_DATA([barchart.sps], [dnl
175 GET FILE="physiology.sav".
177 GRAPH /BAR = COUNT BY SEX.
179 GRAPH /BAR = MEAN(height) BY SEX.
183 GET FILE="repairs.sav".
185 GRAPH /BAR = MEAN (mtbf) BY factory.
187 COMPUTE R = TRUNC(RV.UNIFORM(1,5)).
189 GRAPH /BAR = MEAN (mtbf) BY factory BY R.
192 AT_CHECK([pspp -o pspp.pdf barchart.sps], [0], [ignore])
193 dnl Ignore output -- this is just a no-crash check.
199 AT_SETUP([GRAPH barchart arity])
201 AT_DATA([barchart.sps], [dnl
202 data list notable list /x y z*.
216 * This line is invalid
217 GRAPH /BAR = COUNT(x) BY y.
220 AT_CHECK([pspp -o pspp.pdf barchart.sps], [1], [ignore])
221 dnl Ignore output -- this is just a no-crash check.
228 AT_SETUP([GRAPH barchart bad syntax])
230 AT_DATA([barchart.sps], [dnl
231 data list notable list /x y z*.
245 * This line is invalid
246 GRAPH /BAR = SCROD BY y.
249 AT_CHECK([pspp -o pspp.pdf barchart.sps], [1], [ignore])
250 dnl Ignore output -- this is just a no-crash check.
256 AT_SETUP([GRAPH barchart full])
258 AT_DATA([barchart.sps], [dnl
259 data list notable list /x y z*.
273 * This line is invalid
274 GRAPH /BAR = COUNT by z.
275 GRAPH /BAR = CUFREQ by z.
276 GRAPH /BAR = PCT by z.
277 GRAPH /BAR = CUPCT by z.
279 GRAPH /BAR = MEAN(y) BY z.
280 GRAPH /BAR = SUM(y) BY z.
281 GRAPH /BAR = MAXIMUM(y) BY z.
282 GRAPH /BAR = MINIMUM(y) BY z.
284 GRAPH /BAR = MEAN(y) BY z BY y.
285 GRAPH /BAR = SUM(y) BY z BY y.
286 GRAPH /BAR = MAXIMUM(y) BY z BY y.
287 GRAPH /BAR = MINIMUM(y) BY z BY y.
290 AT_CHECK([pspp -o pspp.pdf barchart.sps], [0], [ignore])
291 dnl Ignore output -- this is just a no-crash check.