The coefficient in front of x affects the period, and shrinking the graph horizontally also affects the period, but not in the same way.