Surface plot using 2Dwave
jeps
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!!
June 13, 2013 at 06:54 am - Permalink
Unfortunatly, the Y wave is log scaled, so not evenly spaced... how would you scale the Z wave then?
June 13, 2013 at 07:12 am - Permalink
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.
June 13, 2013 at 08:26 am - Permalink
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).
June 13, 2013 at 08:58 am - Permalink