Making 2D wave with xyz waves

linepic
Posts: 26
Joined: 2015-06-09
Location: South Korea

Hi,
I am trying to make a simple 2D graph with xyz data.
for instance,
x = [1,2,3,1,2,3,1,2,3]
y = [0,1,2,0,2,4,0,4,8]
z = [0,0,0,1,1,1,2,2,2].

I would like to make it 2D graph with X and Y waves indexed with z wave.
Is it possible to make the 2D graph without seperating y waves into seperate waves?

Thanks for your help!


olelytken
Posts: 61
Joined: 2015-10-12
Location: Germany

You could Redimension the y-wave into a 2D wave and plot it using NewWaterfall.


Igor's picture
Posts: 764
Joined: 2007-06-29
Location: United States

linepic wrote:
Hi,
I am trying to make a simple 2D graph with xyz data.
x = [1,2,3,1,2,3,1,2,3]
y = [0,1,2,0,2,4,0,4,8]
z = [0,0,0,1,1,1,2,2,2].
I would like to make it 2D graph with X and Y waves indexed with z wave.

It is not clear to me what you mean by "indexed with z wave". Typically if you have XYZ data we expect a set of {x[i],y[i],z[i]} values. If this is the case the typical approach is to concatenate the three waves into a single triplet wave and then plot a contour. If you want to generate an image use ImageInterpolate with the Voronoi keyword. You can find an example of this process by executing the command:

displayHelpTopic "Gizmo Surface Using Voronoi Interpolation Tour"

If this is not what you are looking for, please take more time to explain your application in more detail.

A.G.
WaveMetrics, Inc.


JimProuty's picture
Posts: 629
Joined: 2007-07-19
Location: United States

Put this in your Procedure window:

#include <XYZToMatrix>

Then make a selection from the Macros menu:

XYZ Waves to Matrix
XYZ to Matrix Range
XYZ Triplet to Matrix
XY Grid and Z to Matrix

If your X and Y data enumerate all of a grid's locations, then perhaps XY Grid and Z to Matrix will help you.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.


[ last edited October 12, 2017 - 12:12 ]

Back to top