Apply vertical shift $\sin x + d$ (#470)

Apply vertical shift $\sin x + d$ (#470)

Translate graph vertically by dd units.