Change when graph gets redrawn