pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error checking in scatterplot


From: Friedrich Beckmann
Subject: Re: Error checking in scatterplot
Date: Tue, 16 Jun 2015 21:37:07 +0200

Hi John,

the syntax is

GRAPH
/SCATTERPLOT = x WITH y

see: http://benpfaff.org/~blp/pspp-master/latest/source/user-manual/pspp.html#GRAPH

The code fragment checks the existence of y but at that point of parsing x is already in the
variable array. Therefore n_dep_vars is 2 but „only one variable“ is allowed after the WITH.

Friedrich

Am 16.06.2015 um 21:11 schrieb John Darrington <address@hidden>:

Just checking ....

This fragment from src/language/stats/graph.c :

if (graph.scatter_type == ST_BIVARIATE && graph.n_dep_vars != 2)
{
       lex_error (lexer, _("Only one variable is allowed."));
       goto error;
}


The error message does not seem to fit the condition.   Should one or the other be
updated?




--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

_______________________________________________
pspp-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/pspp-dev

--
Friedrich Beckmann, Bismarckstraße 11, 86159 Augsburg
Tel: 0821-44923693, Mobil: 017648576782





reply via email to

[Prev in Thread] Current Thread [Next in Thread]