#set terminal epslatex size 3.4,2.8
set terminal epslatex size 3.4,1.4
set output "error_timed_nexus.tex"

#set multiplot layout 2,1
set format y "\\footnotesize{%.1f m}"
set format x "\\footnotesize{%.0f s}"
set key horizontal
set yrange[0:17]
set xrange[0:91]
set xtics nomirror
set ytics nomirror
set key at graph 1,1 opaque box samplen 1.0 spacing 0.8 width -13

set lmargin 4.6
set tmargin 0.3
set rmargin 0.4
set bmargin 1.2

#set object 1 rectangle from 0,0 to 13,17 fs solid noborder fc rgb "#eeeeee" behind		# standing
#set label 1 "\\footnotesize{1}" at 6.5,2 center rotate by 0 front

#set object 2 rectangle from 13,0 to 34,17 fs solid noborder fc rgb "#dddddd" behind		# walk towards stair
#set label 2 "\\footnotesize{2}" at 23.5,13 center rotate by 0 front

#set object 3 rectangle from 34,0 to 45,17 fs solid noborder fc rgb "#eeeeee" behind		# walk down the stair
#set label 3 "\\footnotesize{3}" at 39.5,13 center rotate by 0 front

#set object 4 rectangle from 45,0 to 62,17 fs solid noborder fc rgb "#dddddd" behind		# walk straight
#set label 4 "\\footnotesize{4}" at 53.5,13 center rotate by 0 front

#set object 5 rectangle from 62,0 to 78,17 fs solid noborder fc rgb "#eeeeee" behind		# change side of floor
#set label 5 "\\footnotesize{5}" at 70,13 center rotate by 0 front

#set object 6 rectangle from 78,0 to 90,17 fs solid noborder fc rgb "#dddddd" behind		# walk straight
#set label 6 "\\footnotesize{6}" at 84.5,8 center rotate by 0 front

#plot \
#	"data/err_bergwerk_path1_nexus_simple.dat"		using ($0/2):($1/100) with lines title "\\footnotesize{simple}\\hspace{-1.5mm}" lc rgb "#000000", \
#	"data/err_bergwerk_path1_nexus_multi.dat"		using ($0/2):($1/100) with lines title "\\footnotesize{multi}\\hspace{-1.5mm}" lc rgb "#0000cc", \
#	"data/err_bergwerk_path1_nexus_shortest.dat"	using ($0/2):($1/100) with lines title "\\footnotesize{shortest}\\hspace{-1.5mm}" lc rgb "#cc0000", \

#plot \
#	"data/err_bergwerk_path2_nexus_simple.dat"		using ($1/100) with lines title "raw" lc rgb "#000000", \
#	"data/err_bergwerk_path2_nexus_multi.dat"		using ($1/100) with lines title "multi-path", \
#	"data/err_bergwerk_path2_nexus_shortest.dat"	using ($1/100) with lines title "shortest-path", \
	
#plot \
#	"data/err_bergwerk_path3_nexus_simple.dat"		using ($1/100) with lines title "raw" lc rgb "#000000", \
#	"data/err_bergwerk_path3_nexus_multi.dat"		using ($1/100) with lines title "multi-path", \
#	"data/err_bergwerk_path3_nexus_shortest.dat"	using ($1/100) with lines title "shortest-path", \
	


set object 1 rectangle from 0,0 to 14,15 fs solid noborder fc rgb "#eeeeee" behind	# standing
set label 1 "\\footnotesize{1}" at 7,2 center rotate by 0 front

set object 2 rectangle from 14,0 to 40,15 fs solid noborder fc rgb "#dddddd" behind	# walking down the way
set label 2 "\\footnotesize{2}" at 27,10 center rotate by 0 front

set object 3 rectangle from 40,0 to 51,15 fs solid noborder fc rgb "#eeeeee" behind	# ignoring the shortest path
set label 3 "\\footnotesize{3}" at 45.5,10 center rotate by 0 front

set object 4 rectangle from 51,0 to 65,15 fs solid noborder fc rgb "#dddddd" behind	# stairwell
set label 4 "\\footnotesize{4}" at 58,10 center rotate by 0 front

set object 5 rectangle from 65,0 to 74,15 fs solid noborder fc rgb "#eeeeee" behind	# exit stairwell
set label 5 "\\footnotesize{5}" at 69.5,10 center rotate by 0 front

set object 6 rectangle from 74,0 to 105,15 fs solid noborder fc rgb "#dddddd" behind # floor
set label 6 "\\footnotesize{6}" at 89.5,10 center rotate by 0 front

set object 7 rectangle from 105,0 to 116,15 fs solid noborder fc rgb "#eeeeee" behind # stair down to f1
set label 7 "\\footnotesize{7}" at 110.5,10 center rotate by 0 front

set object 8 rectangle from 116,0 to 130,15 fs solid noborder fc rgb "#dddddd" behind # floor
set label 8 "\\footnotesize{8}" at 123,10 center rotate by 0 front

set object 9 rectangle from 130,0 to 142,15 fs solid noborder fc rgb "#eeeeee" behind # stair down to f0
set label 9 "\\footnotesize{9}" at 136,10 center rotate by 0 front

set object 10 rectangle from 142,0 to 150,15 fs solid noborder fc rgb "#dddddd" behind # end
set label 10 "\\footnotesize{10}" at 146,10 center rotate by 0 front

set object 900 rectangle at graph 0.5, 0.94 size graph 0.65,0.12 fs solid fc rgb "#ffffff" lc rgb "#000000" 
set label 901 "\\textcolor[rgb]{0,0,0}{\\footnotesize{simple}}" at graph 0.28, 0.94 center front
set label 902 "\\textcolor[rgb]{0,0,0.8}{\\footnotesize{multi}}" at graph 0.49, 0.94 center front
set label 903 "\\textcolor[rgb]{0.8,0,0}{\\footnotesize{shortest}}" at graph 0.71, 0.94 center front

unset key
set yrange[0:13]
set xrange[0:151]
plot \
	"data/err_bergwerk_path4_nexus_simple.dat"		using ($0/2):($1/100) with lines title "\\footnotesize{simple}\\hspace{-1.5mm}" lw 1.2 lc rgb "#000000", \
	"data/err_bergwerk_path4_nexus_multi.dat"		using ($0/2):($1/100) with lines title "\\footnotesize{multi}\\hspace{-1.5mm}" lw 1.2 lc rgb "#0000cc", \
	"data/err_bergwerk_path4_nexus_shortest.dat"	using ($0/2):($1/100) with lines title "\\footnotesize{shortest}\\hspace{-1.5mm}" lw 1.2 lc rgb "#cc0000", \
