GRAPH scatterplot - fixed missing BY variable rendering
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Tue, 15 Dec 2015 23:35:11 +0000 (00:35 +0100)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Tue, 15 Dec 2015 23:35:11 +0000 (00:35 +0100)
scatterplot with GRAPH /SCATTERPLOT x WITH y BY z did not use the by z
grouping of the cases. This patch fixes this.

src/language/stats/graph.c

index 8af6a1515fefbdf1f2c363187d8f6fbf501b0ccb..a53a1913024cf41f5ac80d40be3a883a8c54a1e3 100644 (file)
@@ -778,6 +778,7 @@ cmd_graph (struct lexer *lexer, struct dataset *ds)
                  goto error;
                }
              graph.by_var[0] = v;
+              graph.n_by_vars = 1;
            }
        }
       else if (lex_match_id (lexer, "LINE"))