first working version (but breaks after some time with NaNs)
-rw-r--r-- 11161 kjhf.svg