From 267362bc17e844c2dc225f94a05c6090121d82c3 Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Fri, 24 Apr 2015 18:53:13 +0200 Subject: [PATCH] Switch the order in which scatterplot axes appear in the graphic's caption. Hulliger Beat Reported that scatterplots were titled 'x vs. y' where x and y were opposite to what is conventional. This change fixes that. --- src/language/stats/graph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/language/stats/graph.c b/src/language/stats/graph.c index 54d47d40fa..20dc80255b 100644 --- a/src/language/stats/graph.c +++ b/src/language/stats/graph.c @@ -142,15 +142,15 @@ show_scatterplot (const struct graph *cmd, const struct casereader *input) if (cmd->byvar) { ds_put_format (&title, _("%s vs. %s by %s"), - var_to_string (cmd->dep_vars[0]), var_to_string (cmd->dep_vars[1]), + var_to_string (cmd->dep_vars[0]), var_to_string (cmd->byvar)); } else { ds_put_format (&title, _("%s vs. %s"), - var_to_string (cmd->dep_vars[0]), - var_to_string (cmd->dep_vars[1])); + var_to_string (cmd->dep_vars[1]), + var_to_string (cmd->dep_vars[0])); } -- 2.30.2