Surface plot using 2Dwave

Hi everyone,

I am trying to make a surface plot (please see attached file) with a 2Dwave, and two 1Dwaves. I have a matrix (Z) of dimension (9473,89), a "channel" (Y) wave of dimension (89), and a "time serie" (X) wave of dimension (9473).

when I type this in the command line:
Display;AppendImage Z vs {X,Y}
I get an error message saying that my X&Y waves don't have enough data points....
pretty weird. So after having added two points to both waves (now dimensions: 9474 and 90, respectively), it says that my X wave is not monotonic....

I don't really understand the errors, and don't see why I should add (create) useless datapoints that are not supposed to exist!

Does someone have any tip?
Thanks a lot!!
If your data is evenly spaced in x and y, I would recommend wave scaling of the 2D wave. The image you create should have the appropriate dimensions on the x & y axes.
thanks for the tip!
Unfortunatly, the Y wave is log scaled, so not evenly spaced... how would you scale the Z wave then?
jeps wrote:
Hi everyone,

I am trying to make a surface plot (please see attached file) with a 2Dwave, and two 1Dwaves. I have a matrix (Z) of dimension (9473,89), a "channel" (Y) wave of dimension (89), and a "time serie" (X) wave of dimension (9473).

when I type this in the command line:
Display;AppendImage Z vs {X,Y}
I get an error message saying that my X&Y waves don't have enough data points....
pretty weird. So after having added two points to both waves (now dimensions: 9474 and 90, respectively), it says that my X wave is not monotonic....

I don't really understand the errors, and don't see why I should add (create) useless datapoints that are not supposed to exist!

Does someone have any tip?
Thanks a lot!!


My tip is to read the AppendImage documentation about the x and Y waves.

Use wave scaling for the x (since it is linear), use or create a Y wave containing numYPointsInImage+1 = 90 points.

The Y wave will define the *edges* of the pixels, not the centers.

The bit about monotonic means the X values you provided either weren't sorted, or you had repeated X values.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
Another possibility is to ignore the ywave while making the image (y axis will be points). Then use Labels from a User Tick Wave.

This option will give the y axis the appropriate labels but it will still be plotted vs points (which can be a problem if you want to do any processing).