Yes. The wave start in upper left. But I want it to start in middle left. And go up. Not down. Any more help? Thank you again. | [reply] |

`$y2 = 200 - 200*sin($x2));`
The first 200 will shift the center line of the sine so that it is along the center of the plot. The minus sign flips the sine upside down since *y* is increasing down, not up. Finally, the scale factor is changed to 200 so there is room for both the upper and lower halves of the sine.
That can be written without repeating the 200 as:
`$y2 = 200 * (1-sin($x2));`
| [reply] [d/l] [select] |

OK that works! Does is there a generic way to do this for any values though?
| [reply] |

Comment onRe^3: Make sin wave with GD