You probably made a mistake with the calculation of the period. The amplitude of this graph and is 3. However, this graph has a period of , while has a period of .