Skip to content

Commit

Permalink
Change gnuplot script and output names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thynix committed Sep 3, 2012
1 parent 8c84cf8 commit 973f396
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion analyze.py
Expand Up @@ -374,7 +374,7 @@ def binarySearch(distinctSamples, samples):
numberOfPeers += 1

log("Plotting.")
call(["gnuplot","peer_dist.gnu"])
call(["gnuplot","peer_count.gnu"])

if args.runLinkLengths:
log("Querying database for link lengths.")
Expand Down
8 changes: 2 additions & 6 deletions link_length.gnu
@@ -1,17 +1,13 @@
set terminal png size 1200,800
set terminal png size 900,600
set key off

set title 'Link Length Distribution'

set xlabel 'Link Length (delta location)'
set ylabel 'Percent nodes with this length or less'

set output "link_length_log.png"
set output "plot_link_length.png"
set logscale x
#As location is circular and [0,1), largest difference is 0.5.
plot [0.00001:0.5] [0:1] 'links_output' s cumul


set output 'link_length_linear.png'
unset logscale x
plot [0:0.5] [0:1] 'links_output' s cumul
4 changes: 2 additions & 2 deletions peer_dist.gnu → peer_count.gnu
@@ -1,5 +1,5 @@
set terminal png size 1200,800
set output "peer_dist.png"
set terminal png size 900,600
set output "plot_peer_count.png"

#How to handle xrange? Could mean missing huge changes.
set xrange [1:50]
Expand Down

0 comments on commit 973f396

Please sign in to comment.