Use an xy-graph.
It accepts several data arrangments, e.g.
a cluster of an X-array and a Y-array
An array of xy clusters
...
Open the example finder and search for xy graph for details and examples.
Note that you only need to use an xy graph if the x values are not spaced equally. If the x-values are spaced equally it is sufficient to use a plain waveform graph and only send the Y-array. You then would adjust the x-values by setting x0 and dx for the scale.