[rkward-cvs] SF.net SVN: rkward: [2173] trunk/rkward/rkward/plugins/plots
sjar at users.sourceforge.net
sjar at users.sourceforge.net
Sun Nov 4 19:54:58 UTC 2007
Revision: 2173
http://rkward.svn.sourceforge.net/rkward/?rev=2173&view=rev
Author: sjar
Date: 2007-11-04 11:54:57 -0800 (Sun, 04 Nov 2007)
Log Message:
-----------
enabled grid in "generic plot options"
Modified Paths:
--------------
trunk/rkward/rkward/plugins/plots/histogram.php
trunk/rkward/rkward/plugins/plots/histogram.xml
Modified: trunk/rkward/rkward/plugins/plots/histogram.php
===================================================================
--- trunk/rkward/rkward/plugins/plots/histogram.php 2007-11-04 19:48:45 UTC (rev 2172)
+++ trunk/rkward/rkward/plugins/plots/histogram.php 2007-11-04 19:54:57 UTC (rev 2173)
@@ -21,9 +21,11 @@
$bw = getRK_val ("bw");
$adjust = getRK_val ("adjust");
$narm = getRK_val ("narm");
- $n = getRK_val ('n'); //resolution
+ $n = getRK_val ("n"); //calls "resolution"
$x = getRK_val ("x");
+ $plot_adds = getRK_val ("plotoptions.code.calculate");
+
if ($final) { ?>
rk.header ("Histogram", list ("Variable", rk.get.description (<? echo ($x); ?>) <? if (($densityscaled) && getRK_val ("density")) { ?>, "Density bandwidth", "<? echo ($bw); ?>", "Density adjust", <? echo ($adjust); ?>, "Density resolution", <? echo ($n); ?>, "Density Remove missing values", <? echo ($narm); ?> <? } ?> <? getRK ("histogram_opt.code.preprocess"); ?>))
@@ -35,6 +37,12 @@
<? if (($densityscaled) && getRK_val ("density")) { ?>
lines(density(<? echo ($x); ?>, bw="<? echo ($bw); ?>", adjust = <? echo ($adjust); ?>, <? echo ($narm); ?>, n = <? getRK ("n"); ?>)<? getRK ("col_density.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/histogram.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/histogram.xml 2007-11-04 19:48:45 UTC (rev 2172)
+++ trunk/rkward/rkward/plugins/plots/histogram.xml 2007-11-04 19:54:57 UTC (rev 2173)
@@ -21,6 +21,8 @@
<connect client="adjust.enabled" governor="dodensity"/>
<connect client="narm.enabled" governor="dodensity"/>
<connect client="n.enabled" governor="dodensity"/>
+
+ <set id="plotoptions.allow_grid" to="true"/>
</logic>
<dialog label="Histogram" >
<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