Skip to content

Instantly share code, notes, and snippets.

@bertm
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bertm/8698abef81a439a8d36b to your computer and use it in GitHub Desktop.
Save bertm/8698abef81a439a8d36b to your computer and use it in GitHub Desktop.
Plotting link-length distribution
#!/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