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

kapatp at users.sourceforge.net kapatp at users.sourceforge.net
Wed Mar 21 00:51:22 UTC 2007


Revision: 1674
          http://svn.sourceforge.net/rkward/?rev=1674&view=rev
Author:   kapatp
Date:     2007-03-20 17:51:22 -0700 (Tue, 20 Mar 2007)

Log Message:
-----------
Step 1 of 4: Add col.01line option to plot_stepfun plugin. This will break all the CLT plugins, but next couple of commits should fix them.

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

Modified: trunk/rkward/rkward/plugins/plots/plot_stepfun_options.php
===================================================================
--- trunk/rkward/rkward/plugins/plots/plot_stepfun_options.php	2007-03-20 23:11:39 UTC (rev 1673)
+++ trunk/rkward/rkward/plugins/plots/plot_stepfun_options.php	2007-03-21 00:51:22 UTC (rev 1674)
@@ -27,6 +27,16 @@
 	$col_hor = getRK_val ("col_hor.code.printout");
 	if (!($col_hor == "")) $options .= getRK_val ("col_hor.code.printout");
 
+	if (getRK_val ("visible_col01line")) {
+		$col_y0 = getRK_val ("col_y0.code.printout");
+		$col_y1 = getRK_val ("col_y1.code.printout");
+		if (($col_y0 != "") && ($col_y1 != "")) {
+			$options .= ", col.01line=c({$col_y0},{$col_y1})";
+		} elseif (($col_y0 != "") || ($col_y1 != "")) {
+			$options .= ", col.01line={$col_y0}{$col_y1}";
+		} // col.01line option to plot.ecdf()
+	}
+
 	echo ($options);
 }
 ?>

Modified: trunk/rkward/rkward/plugins/plots/plot_stepfun_options.rkh
===================================================================
--- trunk/rkward/rkward/plugins/plots/plot_stepfun_options.rkh	2007-03-20 23:11:39 UTC (rev 1673)
+++ trunk/rkward/rkward/plugins/plots/plot_stepfun_options.rkh	2007-03-21 00:51:22 UTC (rev 1674)
@@ -14,11 +14,23 @@
 		<setting id="col_horiz">This is the <i>col.hor</i> argument.</setting>
 		<setting id="verticals">This is the <i>verticals</i> arguments. Uncheck this option if vertical lines are NOT to be drawn.</setting>
 		<setting id="col_vert">This is the <i>col.vert</i> argument.</setting>
+		<setting id="frame_col_y0"></setting>
+		<setting id="frame_col_y1"> The above two options are not for <b>plot.stepfun</b>, but rather for <b>ecdf</b>. These are visible only in the context of 'ecdf'. They are used to set the color for the horizontal lines at y = 0 and y = 1 respectively. Specifically, this is the <i>col.01line</i> argument to <b>ecdf</b>. If only one is provided (i.e the other is set as 'Default') then both the line are of the same (specified) color. Otherwise (i.e., when both the colors are provided) both the colors are provided as a character vector of length two.</setting>
 	</settings>
 	<related>
 		<ul>
 			<li><link href="rkward://rhelp/plot.stepfun"/></li>
+			<li><link href="rkward://rhelp/ecdf"/></li>
 		</ul>
 	</related>
+	<section id="techdetails" title="Techinical details">General users may skip this section of help, this is primarily for developers.
+		The following external tags are provided for use in the embeding plugin.
+		<ul>
+			<li><i>allow_addtoplot</i>: Setting this to "true" ("false") enables (disables) the display of the 'Add to current plot' checkbox.</li>
+			<li><i>default_dopoints</i>: Setting this to "true" ("false") toggles the state of the 'Draw points' checkbox.</li>
+			<li><i>default_verticals</i>: Setting this to "true" ("false") toggles the state of the 'Draw verticals' checkbox.</li>
+			<li><i>visible_col01line</i>: Setting this to "true" ("false") enables (disables) the display of the two frames ('For y = 0 line' and 'For y = 1 line') for <i>col.01line</i> option to ecdf.</li>
+		</ul>
+	</section>
 </document>
 

Modified: trunk/rkward/rkward/plugins/plots/plot_stepfun_options.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/plot_stepfun_options.xml	2007-03-20 23:11:39 UTC (rev 1673)
+++ trunk/rkward/rkward/plugins/plots/plot_stepfun_options.xml	2007-03-21 00:51:22 UTC (rev 1674)
@@ -5,7 +5,8 @@
 	<logic>
 		<external id="allow_addtoplot" default="true"/>
 		<external id="default_dopoints" default="true"/>
-		<external id="default_verticals" default="false"/>
+		<external id="default_verticals" default="true"/>
+		<external id="visible_col01line" default="false"/>
 
 		<set id="col_vert.argument" to=", col.vert="/>
 		<set id="col_points.argument" to=", col.points="/>
@@ -20,6 +21,12 @@
 		<convert id="default_dopointsb" sources="default_dopoints" mode="equals" standard="true"/>
 		<connect client="do_points.state" governor="default_dopointsb"/>
 		<connect client="col_points.color.enabled" governor="do_points.state"/>
+
+		<convert id="visible_col01line_TRUE" sources="visible_col01line" mode="equals" standard="true"/>
+		<connect client="frame_col_y0.visible" governor="visible_col01line_TRUE"/>
+		<connect client="frame_col_y1.visible" governor="visible_col01line_TRUE"/>
+		<set id="col_y0.argument" to=""/>
+		<set id="col_y1.argument" to=""/>
 	</logic>
 	<dialog label="Step function plot options">
 		<row>
@@ -49,5 +56,13 @@
 				<embed id="col_vert" component="rkward::color_chooser" label="Color"/>
 			</frame>
 		</row>
+		<row>
+			<frame id="frame_col_y0" label="For y = 0 line">
+				<embed id="col_y0" component="rkward::color_chooser" label="Color"/>
+			</frame>
+			<frame id="frame_col_y1" label="For y = 1 line">
+				<embed id="col_y1" component="rkward::color_chooser" label="Color"/>
+			</frame>
+		</row>
 	</dialog>
 </document>


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