XRANGE=25
LMARGIN=15 
SIZEX=1  
SIZEY=0.20 
OR1=0.68 
OR2=0.48 
OR3=0.28 
OR4=0.08


GPf=set datafile separator ';';set xrange [4:14];set tmargin 0;set bmargin 1;set lmargin $(LMARGIN);set format y '%3.1f';set rmargin 3;set multiplot;set title 'Golem shot No:`cat ../ShotNo`';set size $(SIZEX),$(SIZEY);set origin 0,$(OR1);set ylabel 'U_{loop} [V]';unset key;unset xtics;set style data dots; set yrange [-2:25];set ytics ('0' 0,'10' 10,'20' 20);plot 'Uloop_dp.csv' u 1:2;\
unset title; set origin 0,$(OR2);set ylabel 'B_t [T]';set format y '%3.2f';unset key;unset xtics;set yrange [-0.02:0.3];set ytics ('0' 0,'0.1' 0.1,'0.2' 0.2, '0.3' 0.3);plot 'Btoroidal_dp.csv';\
unset title; set origin 0,$(OR3);set ylabel 'I_{p+ch} [kA]';set format y '%3.1f';unset key;unset xtics;set yrange [-0.2:5];set ytics ('0' 0,'1' 1,'2' 2,'3' 3,'4' 4,'5'5);plot 'Irogowski_dp.csv' u 1:(\$$2/1000);\
unset title; set origin 0,$(OR4);set ylabel 'Photod [a.u.]';set format y '%3.2f';unset key;set xtics ('5' 5,'10' 10, '15' 15, '20' 20, '25' 25, '30' 30);set xlabel 'Time [ms]';set yrange [-0.01:0.12];set ytics ('0' 0,'3' 0.03,'6' 0.06,'9' 0.09,'12' 0.12);plot 'Photod_dp.csv';\


print:
	echo "set terminal postscript size 12,10 portrait  enhanced;$(GPf)"|gnuplot > graphprint.ps;
	echo "set terminal svg enhanced;$(GPf)"|gnuplot > graphprint.svg;\
	convert graphprint.ps graphprint.jpg















