Switch the order in which scatterplot axes appear in the graphic's caption.
[pspp] / 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]));
     }