I have a GNUplot script in .gp file.
set terminal pngcairo enhanced size 5000,500 font 'DejaVuSerifCondensed,11' rounded;
set output 'acc_vrecko_predne.png'
set encoding iso_8859_2
set yrange [-15:15]
set xrange [0:1261]
set xtics 20
set title 'dáta accelerometer - predne vrecko ' font 'DejaVuSerifCondensed-Bold,12'
set samples 7000
set style line 1 lt 1 lw 0.5 lc rgb "red"
set style line 2 lt 1 lw 0.5 lc rgb "blue"
set style line 3 lt 1 lw 1 lc rgb "green"
set datafile separator "|"
plot \
\
'data/vrecko_acc.txt' u 0:2 sm cs w l ls 1 t 'X-suradnice',\
'data/vrecko_acc.txt' u 0:3 sm cs w l ls 2 t 'Y-suradnice',\
'data/vrecko_acc.txt' u 0:4 sm cs w l ls 3 t 'Z-suradnice'
reset
Is there any way I can specify data path and filename in terminal and run script from it ? Should I change something in my .gpfile ?
THX