Last active
August 29, 2015 14:01
-
-
Save bertm/8698abef81a439a8d36b to your computer and use it in GitHub Desktop.
Plotting link-length distribution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
N=`cat linklengths.txt | wc -l` | |
HTL=25 | |
gnuplot -e "set title 'N = $N, HTL = $HTL'" \ | |
-e "set table 'plot.dat'" \ | |
-e "plot 'linklengths.txt' u 1:(1) smooth cnormal notitle" \ | |
-e "unset table" \ | |
-e "set xrange [1e-5:0.5]" \ | |
-e "set yrange [1e-3:1]" \ | |
-e "set xlabel 'Link length'" \ | |
-e "set ylabel 'Cumulative fraction'" \ | |
-e "set log xy" \ | |
-e "set terminal pngcairo" \ | |
-e "set output 'plot.png'" \ | |
-e "plot 'plot.dat' with lines notitle" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment