#! /bin/bash # PATH="/bin:/usr/bin"; export PATH title="$1" options="$2" xlabel="state index" ylabel="probability" labels="set title \"$title\"\nset xlabel \"$xlabel\"\nset ylabel \"$ylabel\"\n$options" #labels="$labels\nset xrange [0:260]" #labels="$labels\nset yrange [0:1]" #labels="$labels\nset xtics 1" grep -v '^count:' | (printf "set term gif\nset output\n$labels\nplot '-' notitle with linespoints lc rgb 'blue'\n"; cat) | gnuplot