Switch the order in which scatterplot axes appear in the graphic's caption.
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Fri, 24 Apr 2015 16:53:13 +0000 (18:53 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 24 Apr 2015 16:53:13 +0000 (18:53 +0200)
Hulliger Beat <beat.hulliger@fhnw.ch> 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

index 54d47d40fa1156e892989dc188e8e83761b26796..20dc80255b6fea04dee5856d7913d35f6ea61519 100644 (file)
@@ -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]));
     }