Correct repulsive gradient formula (wrong frame), Fix plotGradient method