[or-cvs] r18805: {torflow} SVN and centralized version control sez: "Even super ghetto (torflow/trunk/CircuitAnalysis/BuildTimes)

mikeperry at seul.org mikeperry at seul.org
Sun Mar 8 08:51:20 UTC 2009


Author: mikeperry
Date: 2009-03-08 04:51:19 -0400 (Sun, 08 Mar 2009)
New Revision: 18805

Added:
   torflow/trunk/CircuitAnalysis/BuildTimes/plot_all.sh
   torflow/trunk/CircuitAnalysis/BuildTimes/plots/
Modified:
   torflow/trunk/CircuitAnalysis/BuildTimes/extend_plot.r
Log:

SVN and centralized version control sez: "Even super
ghetto plotting scripts are better than none (or ones 
people can't find)"



Modified: torflow/trunk/CircuitAnalysis/BuildTimes/extend_plot.r
===================================================================
--- torflow/trunk/CircuitAnalysis/BuildTimes/extend_plot.r	2009-03-08 07:30:22 UTC (rev 18804)
+++ torflow/trunk/CircuitAnalysis/BuildTimes/extend_plot.r	2009-03-08 08:51:19 UTC (rev 18805)
@@ -1,7 +1,9 @@
 args = commandArgs()
+range=strsplit(basename(args[3]), ".", fixed=TRUE)[[1]][1]
+outpdf = paste("./plots/extendtimes", range, ".pdf", sep="") 
 
-e <- read.table(args[3]) 
-pdf("extensiontimes2.pdf", width=8, height=6)
+e <- read.table(args[3])
+pdf(outpdf, width=8, height=6)
 plot(density(e[,2] + e[,3] + e[,4]), ylim=c(0,0.8), xlim=c(0,10), frame=FALSE,
 axes=FALSE, main="Circuit extension time", xlab="Time [s]")
 axis(1, at=0:10)

Added: torflow/trunk/CircuitAnalysis/BuildTimes/plot_all.sh
===================================================================
--- torflow/trunk/CircuitAnalysis/BuildTimes/plot_all.sh	                        (rev 0)
+++ torflow/trunk/CircuitAnalysis/BuildTimes/plot_all.sh	2009-03-08 08:51:19 UTC (rev 18805)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# This is really ghetto. 100% dependent on fixed paths here...
+
+for i in ./slices/*.extendtimes
+do
+  R --vanilla $i < ./extend_plot.r
+done
+
+for i in ./slices/*.buildtimes
+do
+  ./shufflebt.py -d ./slices -g $i
+done
+
+# Did I mention it's super ghetto? 
+mv ./slices/*.png ./plots/


Property changes on: torflow/trunk/CircuitAnalysis/BuildTimes/plot_all.sh
___________________________________________________________________
Added: svn:executable
   + *



More information about the tor-commits mailing list