The amplitude (multiplier of sin(x) value) is half the difference between the highest and lowest values you want. In your case
amplitude = (3 - 0.4)/2
which is 1.3
. Then zero offset is the lowest value plus the amplitude, which makes it 1.7
in your case.
The equation you want to graph is then
1.3 * sin(x) + 1.7