#!/usr/local/bin/gnuplot -persist
# set terminal pngcairo  transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 
# set output 'simple.2.png'
unset parametric
set title "Kaefer klettert auf Baum" 
set title  font ",20" textcolor lt -1 norotate

# Baum hat schon 100m
start = 100

# baum(anzahl tage) = anfangshöhe + (anzahl tage * 20cm)
tree(x) = start + (x * 0.20)

# kaefer(anzahl tage) = (anzahl tage * 10cm) + (baumhöhe / kaeferhoehe)
kaefer(x) = (x * 0.10) * ( 1 + (0.20/tree(x)) )

plot [0:5000000] tree(x) title 'Baum', \
     kaefer(x) title 'Kaefer'
