+command="$command; set key outside right"
+plot="plot "
+for y in $toplot; do
+ lab=$(echo $labels | tr " " "\n" | head --lines=$y | tail --lines=1)
+ if [ "$lab" == "" ]; then
+ lab=$y
+ fi
+ plot="$plot \"$1\" u $x:$y w $style t \"$lab\","
+done
+
+plot=$(echo $plot | sed -e "s/,//$(echo $toplot | wc -w)")
+command="$command; $plot; exit"
+
+gnuplot="/usr/bin/gnuplot"
+$gnuplot --persist -e "$command"