Skip to content

Instantly share code, notes, and snippets.

@nicokruger
Created March 18, 2012 21:27
Show Gist options
  • Save nicokruger/2081541 to your computer and use it in GitHub Desktop.
Save nicokruger/2081541 to your computer and use it in GitHub Desktop.
Simple 1d gnuplot line graph
TMP_FILE=$(mktemp)
for var in "$@"
do
echo $var >> $TMP_FILE
done
GNUPLOT_FILE=$(mktemp)
gnuplot <<DeadBeef
set style line 1 linetype 2
set grid
set multiplot
plot "${TMP_FILE}" with lines
pause 50
DeadBeef
rm $TMP_FILE
rm $GNUPLOT_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment