[rkward-cvs] SF.net SVN: rkward:[3772] trunk/rkward/rkward/plugins

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Sep 14 10:51:39 UTC 2011


Revision: 3772
          http://rkward.svn.sourceforge.net/rkward/?rev=3772&view=rev
Author:   tfry
Date:     2011-09-14 10:51:39 +0000 (Wed, 14 Sep 2011)
Log Message:
-----------
Modernize parameter printing in barplot plugin

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/analysis/crosstab.js
    trunk/rkward/rkward/plugins/plots/barplot.js
    trunk/rkward/rkward/plugins/plots/barplot_embed.js

Modified: trunk/rkward/rkward/plugins/analysis/crosstab.js
===================================================================
--- trunk/rkward/rkward/plugins/analysis/crosstab.js	2011-09-14 10:50:58 UTC (rev 3771)
+++ trunk/rkward/rkward/plugins/analysis/crosstab.js	2011-09-14 10:51:39 UTC (rev 3772)
@@ -92,7 +92,7 @@
 
 		if (getValue ("barplot") == "TRUE") {
 			echo ('\n');
-			echo ('	rk.header ("Barplot for Crosstabs", list ("Dependent", names (x)[1], "Independent", names (yvars)[i]' + getValue ('barplot_embed.code.preprocess') + '), level=2)\n');
+			echo ('	rk.header ("Barplot for Crosstabs", list ("Dependent"=names (x)[1], "Independent"=names (yvars)[i]' + getValue ('barplot_embed.code.preprocess') + '), level=2)\n');
 			echo ('	rk.graph.on ()\n');
 			echo ('	try ({\n');
 			if (any_table_additions) {

Modified: trunk/rkward/rkward/plugins/plots/barplot.js
===================================================================
--- trunk/rkward/rkward/plugins/plots/barplot.js	2011-09-14 10:50:58 UTC (rev 3771)
+++ trunk/rkward/rkward/plugins/plots/barplot.js	2011-09-14 10:51:39 UTC (rev 3772)
@@ -13,9 +13,9 @@
 
 	var tabulate_header = "";
 	if (tabulate) {
-		tabulate_header = '"Tabulate", "Yes"';
+		tabulate_header = '"Tabulate"="Yes"';
 	} else {
-		tabulate_header = '"Tabulate", "No"';
+		tabulate_header = '"Tabulate"="No"';
 	}
 
 	var barplot_header = getValue ("barplot_embed.code.preprocess");

Modified: trunk/rkward/rkward/plugins/plots/barplot_embed.js
===================================================================
--- trunk/rkward/rkward/plugins/plots/barplot_embed.js	2011-09-14 10:50:58 UTC (rev 3771)
+++ trunk/rkward/rkward/plugins/plots/barplot_embed.js	2011-09-14 10:51:39 UTC (rev 3772)
@@ -24,7 +24,7 @@
 	// generate and print argument list suitable for display in rk.header
 	if (options['legend']) legend_label = "TRUE";
 	else legend_label = "FALSE";
-	echo (', "colors", "' + options['colors'] + '", "Type", "' + options['type'] + '", "Legend", "' + legend_label + '"');
+	echo (', "colors"="' + options['colors'] + '", "Type"="' + options['type'] + '", "Legend"="' + legend_label + '"');
 }
 
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list