change the range of plot to [-1,1]