取消
顯示結果 
搜尋替代 
您的意思是: 

array to graph

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.

0 積分
1 條訊息(共 5 條)
3,206 檢視

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)

0 積分
2 條訊息(共 5 條)
3,203 檢視

where do u define step size for x-axis and y-axis?

0 積分
3 條訊息(共 5 條)
3,169 檢視

@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.

0 積分
4 條訊息(共 5 條)
3,163 檢視

@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).

0 積分
5 條訊息(共 5 條)
3,132 檢視