The string is driven by an oscillator, and the frequency is gradually raised. You can see the fundamental and the first three overtones as standing waves. In other words n = 1, 2, 3, and 4.