Plot[(Tanh[x] + 1) 0.5, {x, 2, -2}]