#set terminal epslatex size 3.4,2.8
set terminal epslatex size 3.4,1.4
set output "error_timed.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 0,0 to 10,15 fs solid noborder fc rgb "#dddddd" behind	# walking down the way
#set label 2 "\\footnotesize{2}" at 5,6 center rotate by 0 front

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

#set object 4 rectangle from 21,0 to 35,15 fs solid noborder fc rgb "#dddddd" behind	# stairwell
#set label 4 "\\footnotesize{4}" at 28,6 center rotate by 0 front

#set object 5 rectangle from 35,0 to 44,15 fs solid noborder fc rgb "#eeeeee" behind	# exit stairwell
#set label 5 "\\footnotesize{5}" at 39.5,6 center rotate by 0 front

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

#set object 7 rectangle from 75,0 to 86,15 fs solid noborder fc rgb "#eeeeee" behind # stair down to f1
#set label 7 "\\footnotesize{7}" at 80.5,6 center rotate by 0 front

#set object 8 rectangle from 86,0 to 100,15 fs solid noborder fc rgb "#dddddd" behind # floor
#set label 8 "\\footnotesize{8}" at 93,6 center rotate by 0 front

#set object 9 rectangle from 100,0 to 112,15 fs solid noborder fc rgb "#eeeeee" behind # stair down to f0
#set label 9 "\\footnotesize{9}" at 106,7.3 center rotate by 0 front

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



#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,5.5 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,5.5 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,5.5 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,5.5 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,5.5 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,5.5 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,5.5 center rotate by 0 front

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

set object 9 rectangle from 128,0 to 140,15 fs solid noborder fc rgb "#eeeeee" behind # stair down to f0
set label 9 "\\footnotesize{9}" at 134,5.5 center rotate by 0 front

set object 10 rectangle from 140,0 to 150,15 fs solid noborder fc rgb "#dddddd" behind # end
set label 10 "\\footnotesize{10}" at 145,5.5 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.6,0}{\\footnotesize{filtered}}" at graph 0.28, 0.94 center front
set label 902 "\\textcolor[rgb]{0,0,0.8}{\\footnotesize{BS}}" at graph 0.49, 0.94 center front
set label 903 "\\textcolor[rgb]{0.8,0,0}{\\footnotesize{FBS}}" at graph 0.71, 0.94 center front

unset key
set yrange[0:10]
set xrange[18:151]
set y2range[-8:7]
plot \
	"BS/err_norm_fixedIntervallSimpleTransPath4.dat"				using (($0+35)/2):($1/100) with lines title "\\footnotesize{simple}\\hspace{-1.5mm}" lw 1.2 lc rgb "#00cc00", \
	"FBS/err_smooth_fixedIntervallSimpleTransPath4.dat"				using (($0+40)/2):($1/100) with lines title "\\footnotesize{multi}\\hspace{-1.5mm}" lw 1.2 lc rgb "#0000cc", \
	"BS/err_smooth_fixedIntervallSimpleTransPath4.dat"				using (($0+40)/2):($1/100) with lines title "\\footnotesize{shortest}\\hspace{-1.5mm}" lw 1.2 lc rgb "#cc0000", \
	"../../activity/act_bergwerk_path4_nexus_simple_interval0.dat"	using ($0/2):($1) with lines lc rgb "#000000" axes x1y2
