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

sjar at users.sourceforge.net sjar at users.sourceforge.net
Tue Jun 5 18:25:53 UTC 2007


Revision: 1926
          http://svn.sourceforge.net/rkward/?rev=1926&view=rev
Author:   sjar
Date:     2007-06-05 11:25:52 -0700 (Tue, 05 Jun 2007)

Log Message:
-----------
added clockwise option to pie chart

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

Modified: trunk/rkward/rkward/plugins/plots/piechart.php
===================================================================
--- trunk/rkward/rkward/plugins/plots/piechart.php	2007-06-01 14:15:40 UTC (rev 1925)
+++ trunk/rkward/rkward/plugins/plots/piechart.php	2007-06-05 18:25:52 UTC (rev 1926)
@@ -20,8 +20,10 @@
 	$tabulate= getRK_val ("tabulate")=="TRUE";
 	$radius = getRK_val ("radius");
 	$col = getRK_val ("colors");
+	$clockwise = getRK_val ("clockwise");
 
 	$options = "";
+	$options .= ", clockwise =" . $clockwise;
 	if ($radius != 0.8) $options .= ", radius=" . $radius;
 	if ($col == "rainbow") $options .= ", col=rainbow (if(is.matrix(x)) dim(x) else length(x))";
 	else if ($col == "grayscale") $options .= ", col=gray.colors (if(is.matrix(x)) dim(x) else length(x))";

Modified: trunk/rkward/rkward/plugins/plots/piechart.rkh
===================================================================
--- trunk/rkward/rkward/plugins/plots/piechart.rkh	2007-06-01 14:15:40 UTC (rev 1925)
+++ trunk/rkward/rkward/plugins/plots/piechart.rkh	2007-06-05 18:25:52 UTC (rev 1926)
@@ -15,6 +15,7 @@
 		<caption id="tab_options"/>
 		<setting id="colors">Type of colors to use.</setting>
 		<setting id="radius">Radius of the pie. For long labels it may be necessary to make the pie smaller than the default.</setting>
+		<setting id="clockwise">Define if slices should be drawn clockwise or counter clockwise.</setting>
 		<setting id="plotoptions">Generic plot options. See <link href="rkward://component/plot_options"/>.</setting>	
 	</settings>
 	<related>

Modified: trunk/rkward/rkward/plugins/plots/piechart.xml
===================================================================
--- trunk/rkward/rkward/plugins/plots/piechart.xml	2007-06-01 14:15:40 UTC (rev 1925)
+++ trunk/rkward/rkward/plugins/plots/piechart.xml	2007-06-05 18:25:52 UTC (rev 1926)
@@ -27,6 +27,7 @@
 					<option value="grayscale" label="Grayscale"/>
 					<option value="rainbow" label="Rainbow colors" checked="true"/>
 				</radio>
+				<checkbox id="clockwise" label="clockwise" value="TRUE" value_unchecked="FALSE" checked="false" />
 				<spinbox id="radius" type="real" min="0.01" max="1" initial="0.8" label="Radius"/>
 				<embed id="plotoptions" component="rkward::plot_options" as_button="true" label="Plot Options"/>
 			</tab>


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