set terminal epslatex standalone color size 15cm,10cm set output "mass_budget.tex" #set logscale y set xr[0.:8.] set yr[-0.0008:0.0008] set xlabel "$t [s]$" font "Helvetica,24" set ylabel "$M_{j_{err}} [\\%]$" font "Helvetica,24" set key top set key font "Helvetica,12" set key maxrows 4 set key spacing 2. # Increase spacing between legend rows set key samplen 6. # Increase sample length (default is 4) set format y '$%.1t \times 10^{%T}$' #set format y '$%g$' p t=0 '../CAC_128_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$3:0, t=t+1, (y1-$3)/y0*100.) w lp pt 6 ps 2.15 pi 5 lw 4 lc 1 t "$CAC (j=1)$", \ t=0 '../CAC_128_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$4:0, t=t+1, (y1-$4)/y0*100.) w lp pt 7 ps 2.00 pi 10 lw 4 dt 2 lc 1 t "$CAC (j=2)$", \ t=0 '../CH_128_L1.0_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$3:0, t=t+1, (y1-$3)/y0*100.) w lp pt 4 ps 1.6 pi 5 lw 4 lc 2 t "$CCH (j=1)$", \ t=0 '../CH_128_L1.0_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$4:0, t=t+1, (y1-$4)/y0*100.) w lp pt 5 ps 1.6 pi 10 lw 4 dt 2 lc 2 t "$CCH (j=2)$", \ t=0 '../AVOF_128_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$3:0, t=t+1, (y1-$3)/y0*100.) w lp pt 10 ps 2.2 pi 10 lw 4 lc 3 t " $AVOF (j=1)$", \ t=0 '../AVOF_128_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$4:0, t=t+1, (y1-$4)/y0*100.) w lp pt 11 ps 2.2 pi 10 lw 4 dt 2 lc 3 t " $AVOF (j=2)$", \ t=0 '../GVOF_128_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$3:0, t=t+1, (y1-$3)/y0*100.) w lp pt 12 ps 2.2 pi 10 lw 4 lc 4 t " $GVOF (j=1)$", \ t=0 '../GVOF_128_HF/mass_budget.dat' u 1:(t==0?y0=$2:0, t==0?y1=$4:0, t=t+1, (y1-$4)/y0*100.) w lp pt 13 ps 2.2 pi 10 lw 4 dt 2 lc 4 t " $GVOF (j=2)$"