Animated Sine Wave Graph

Hey Peeps,

I’m trying to draw a graph in which a Sine wave is moving up and down.
Something like the right part of the image just into the other direction

Do I use a Polyline for this and If so how do I use it?

My Code till now (i just drew two axis):

**void** ofApp::draw(){
    ofDrawLine(0.25*ofGetWidth(), 0.5*ofGetHeight(), 0.25*ofGetWidth(), 0.75*ofGetHeight());
    ofDrawLine(0.25*ofGetWidth(), 0.75*ofGetHeight(), 0.5*ofGetWidth(), 0.75*ofGetHeight());

Maybe you can check this example, that comes with OF: