Created
March 18, 2012 21:27
-
-
Save nicokruger/2081541 to your computer and use it in GitHub Desktop.
Simple 1d gnuplot line graph
This file contains 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
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