Activate the animation function to get the maxvalue for each animation plot. Also use this value to update yAxis.
Minor bugfixes and improvements, also resolves #7.