08-07-2011 08:29 AM
Hi,
I have array which contain values for x and y axis. how to pass this value to generate graph. how to display x and y-axis coordinate and pass this value.
thanks.
08-07-2011 08:45 AM - edited 08-08-2011 01:36 AM
If the x-values are not spaced equally, you need an xy graph.
Let's assume you have a 2D array with two rows or colums. Use "index array" to get the two slices as 1D arrays, then bundle them (or use "RE/IM to complex" to make a complex 1D array). Wire to a xy graph terminal.
See how far you get... (See also)
08-07-2011 08:47 PM
where do u define step size for x-axis and y-axis?
08-07-2011 11:56 PM
@6878 wrote:
Where do you define step size for x-axis and y-axis?
There is no step size. Each element of the two arrays represent and X, Y pair.
08-08-2011 10:12 AM
@6878 wrote:
where do u define step size for x-axis and y-axis?
If the x-values are spaced equally, you would use a plain waveform graph.
The linear relation connecting the array index of the y-array with the actual x-values is given by the offset and increment of the x-axis property. This can be set with a property node. You can also make a special cluster with three elements: two scalars (offset, increment) and a Y array. Wiring this clsuter to a wavform graph will also adjust the x-axis correctly. (of course you could also build a waveform).