Loop for data plotting, 1000 graphs on same figure

Hi,

I am new to Igor. I am using Igor Pro 7.08.

I have the data in two separate tables that i am trying to plot. Each table is 18 rows by 1000 columns. I am trying to plot column 1 from both tables vs each other and column two from each table vs each other all the way to column 1000, creating a plot with 1000 graphs on the same set of axis. I have tried a few of the tutorials and suggestions made by other forum posts but have not had success. This should be straight forward but I am not making it.

Any help is greatly appreciated. Thank you in advance.
Here's an example of how to do this:
Function test()
    Make/O/N=(18, 1000) wave1 = p + 10*q
    Make/O/N=(18, 1000) wave2 = 5*p + q/10
   
    // Get number of columns. We assume both waves
    // have the same number of columns
    Variable numCols = DimSize(wave1, 1)
   
    Variable n
    Display // Create an empty graph
    For (n=0; n < numCols; n+=1)
        AppendToGraph wave1[][n] vs wave2[][n]
    EndFor
End