Skip to content

Instantly share code, notes, and snippets.

@joyeecheung
Last active August 29, 2015 14:04
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 joyeecheung/ed9dc0b21c063884894b to your computer and use it in GitHub Desktop.
Save joyeecheung/ed9dc0b21c063884894b to your computer and use it in GitHub Desktop.
plotting result of Jigsaw
set terminal png size 1378,768
set output 'result.png'
set xrange [-2000:30000]
set boxwidth 200 absolute
set style fill solid 1.0 noborder
bin_width = 1000;
bin_number(x) = floor(x/bin_width)
rounded(x) = bin_width * ( bin_number(x) + 0.5 )
plot 'result.txt' using (rounded($1)):(1.0/20) smooth frequency with boxes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment