Not exactly sure what you're trying to visualize here, but...
The graph is correct. You're expecting black-red-blue based on where they cross Zero. But, if you look, black crosses zero on the ascending, red crosses zero on the descending, blue on the ascending again.
You've got the formula's set up so that the last phase (blue) is actually leading the rest of them, and the middle phase (red) lags blue, leads red.
I think you want your formula's to be:
black = sin(a2) - leading all
red = sin(a2 - 120) - following black
blue = sin(a2 - 240) - following red
Bookmarks