This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Fusion2016/tex/gfx/eval/error_dist_galaxy.gp
FrankE b1da0de3f9 latest TeX
many new gfx and data
worked on eval
2016-02-10 20:09:23 +01:00

33 lines
1.7 KiB
Gnuplot

set terminal epslatex size 3.5,1.6
set output "error_dist_galaxy.tex"
set key samplen 1.0 spacing 0.8 width -5
set lmargin 4.7
set tmargin 0.3
set rmargin 0.4
set bmargin 1.2
# the first 20 values (= 10 seconds) are skipped using "tail"
simpleFiles="data/err_bergwerk_path1_galaxy_simple.dat data/err_bergwerk_path2_galaxy_simple.dat data/err_bergwerk_path3_galaxy_simple.dat data/err_bergwerk_path4_galaxy_simple.dat"
simpleInput=sprintf("%s%s%s", "< tail -n+20 -q ", simpleFiles, " | sort -g");
simpleLines=system(sprintf("%s%s%s", "tail -n+20 -q ", simpleFiles, " | wc -l"));
multiFiles="data/err_bergwerk_path1_galaxy_multi.dat data/err_bergwerk_path2_galaxy_multi.dat data/err_bergwerk_path3_galaxy_multi.dat data/err_bergwerk_path4_galaxy_multi.dat"
multiInput=sprintf("%s%s%s", "< tail -n+20 -q ", multiFiles, " | sort -g");
multiLines=system(sprintf("%s%s%s", "tail -n+20 -q ", multiFiles, " | wc -l"));
shortFiles="data/err_bergwerk_path1_galaxy_shortest.dat data/err_bergwerk_path2_galaxy_shortest.dat data/err_bergwerk_path3_galaxy_shortest.dat data/err_bergwerk_path4_galaxy_shortest.dat"
shortInput=sprintf("%s%s%s", "< tail -n+20 -q ", shortFiles, " | sort -g");
shortLines=system(sprintf("%s%s%s", "tail -n+20 -q ", shortFiles, " | wc -l"));
set xrange[0:15]
set key left
set format x "\\footnotesize{%.0f m}"
set format y "\\footnotesize{%.0f \\%%}"
plot \
simpleInput using ($1/100):($0/simpleLines*100) with lines title "\\footnotesize{simple}" lc rgb "#000000", \
multiInput using ($1/100):($0/multiLines*100) with lines title "\\footnotesize{multi}" lc rgb "#0000aa", \
shortInput using ($1/100):($0/shortLines*100) with lines title "\\footnotesize{shortest}" lc rgb "#aa0000", \