Added resize functionality which adapts the graph scales and recalculates point position, instead of replotting complete graph