trying requestAnimationFrame
restored graph plotting to normal