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

sjar at users.sourceforge.net sjar at users.sourceforge.net
Sun Nov 4 19:47:39 UTC 2007


Revision: 2171
          http://rkward.svn.sourceforge.net/rkward/?rev=2171&view=rev
Author:   sjar
Date:     2007-11-04 11:47:38 -0800 (Sun, 04 Nov 2007)

Log Message:
-----------
enabled grid

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/plots/stripchart_plot.php
    trunk/rkward/rkward/plugins/plots/stripchart_plot.xml

Modified: trunk/rkward/rkward/plugins/plots/stripchart_plot.php
===================================================================
--- trunk/rkward/rkward/plugins/plots/stripchart_plot.php	2007-11-04 18:25:15 UTC (rev 2170)
+++ trunk/rkward/rkward/plugins/plots/stripchart_plot.php	2007-11-04 19:47:38 UTC (rev 2171)
@@ -22,6 +22,7 @@
 	$jitter = getRK_val ("jitter");
 	$offset = getRK_val ("offset");
 	$vertical = getRK_val ("vertical");
+	$plot_adds = getRK_val ("plotoptions.code.calculate"); //add grid and alike
 
 	if ($final) { ?>
 rk.header ("Stripchart", list ("Variable", rk.get.description (<? echo ($x); ?>), "Group", rk.get.description (<? echo ($g); ?>), "Method", <? echo ($method); ?>, "Jitter", <? echo ($jitter); ?>, "Plot drawn vertically", <? echo ($vertical); ?>, "Offset", <? echo ($offset); ?>))
@@ -29,6 +30,12 @@
 rk.graph.on ()
 <?	} ?>
 try (stripchart (<? echo ($x); ?> ~ (<? echo ($g); ?>), vertical=<? echo ($vertical); ?>, method = <? echo ($method); ?>, jitter = <? echo ($jitter); ?>, offset = <? echo ($offset); ?><? getRK ("plotoptions.code.printout"); ?>))
+<?	if (!empty ($plot_adds)) { ?>
+
+<?		// print the grid() related code
+		printIndented ("\t", $plot_adds);
+	}
+?>
 <?	if ($final) { ?>
 rk.graph.off ()
 <?	}

Modified: trunk/rkward/rkward/plugins/plots/stripchart_plot.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/stripchart_plot.xml	2007-11-04 18:25:15 UTC (rev 2170)
+++ trunk/rkward/rkward/plugins/plots/stripchart_plot.xml	2007-11-04 19:47:38 UTC (rev 2171)
@@ -6,6 +6,8 @@
 		<set id="plotoptions.allow_log" to="true"/>
 		<set id="plotoptions.allow_type" to="false"/>
 		<set id="plotoptions.allow_asp" to="true"/>
+		
+		<set id="plotoptions.allow_grid" to="true"/>
 	</logic>
 	<dialog label="Stripchart" >
 		<tabbook>


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