Skip to content

Instantly share code, notes, and snippets.

@dpineiden
Created June 24, 2016 13:14
Show Gist options
  • Save dpineiden/fa3c28cb43be70cabcce48a43957dc0b to your computer and use it in GitHub Desktop.
Save dpineiden/fa3c28cb43be70cabcce48a43957dc0b to your computer and use it in GitHub Desktop.
name=system("echo $estacion_now")
N=system("echo $N")
set terminal qt size 2000,1300
set multiplot layout 3,1 title "Estacion GPS: E-N-Up"
set xlabel 'Tiempo'
set timefmt "%s"
set xdata time
set format x "%H:%M:%S \n %m/%d/%Y"
set ylabel '[m]'
set grid ytics lt 0 lw 1 lc rgb "#bbbbbb"
set grid xtics lt 0 lw 1 lc rgb "#bbbbbb"
set rmargin 4
set title 'Este'
set key outside
plot '< tail -n '.N.' '.name u 1:2:3 title 'Este' w yerrorbars lt rgb "red"
set xlabel 'Tiempo'
set timefmt "%s"
set xdata time
set format x "%m/%d/%Y \n %H:%M:%S"
set ylabel '[m]'
set grid ytics lt 0 lw 1 lc rgb "#bbbbbb"
set grid xtics lt 0 lw 1 lc rgb "#bbbbbb"
set rmargin 4
set title 'Norte'
set key outside
plot '< tail -n '.N.' '.name u 1:4:5 title 'Norte' w yerrorbars lt rgb "#1A692C"
set xlabel 'Tiempo'
set timefmt "%s"
set xdata time
set format x "%m/%d/%Y \n %H:%M:%S"
set ylabel '[m]'
set grid ytics lt 0 lw 1 lc rgb "#bbbbbb"
set grid xtics lt 0 lw 1 lc rgb "#bbbbbb"
set rmargin 4
set title 'Up'
set key outside
plot '< tail -n '.N.' '.name u 1:6:7 title 'Up' w yerrorbars lt rgb "blue"
unset multiplot
pause 1
reread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment