#!/usr/bin/gnuplot

set terminal jpeg size 1000,500
set output "all.jpg"

plot for [col in "target curpos speed error"] 'coords' using 1:col with lines title columnheader
