cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the XY graph

SOLVED
A.A.A.
Member
Solved!

How to use the XY graph

Message contains an attachment

Hi

I was instructed to use an XY graph instead Express XY graph.

 

The XY has only one input.

 

How can I input x and y to it?

 

Thank You.

10 REPLIES 10
altenbach
Knight of NI

Re: How to use the XY graph

The xy graph accepts a number of different inputs and you can freely choose:

 

  • An array of points, where each point is a cluster of two scalars, x and y.
  • An array of complex. RE=x IM=y
  • A cluster of two arrays: x-array, y-array

For mutliple plots, use a cluster array of the above data structures.

 

If you hover over the terminal and enable the context help, you'll get some ideas. ALso the help has information. Open the example finder for examples on xy graphs. It's all there, you just need to look!

altenbach
Knight of NI

Re: How to use the XY graph

Message contains a hyperlink Message contains an image
A.A.A.
Member

Re: How to use the XY graph

Message contains an attachment

I have seen the help and I tried the cluster.

But it always gives me an error.

 

What is the possible solution of this error?

johnsold
Knight of NI

Re: How to use the XY graph

You used Build Cluster Array.  What you need is Bundle.  Both are on the Cluster... palette.  Build Cluster Array creates a cluster from elements of the input arrays and then creates an array of the clusters.  The Bundle creates one cluster containing two arrays.

 

Lynn

A.A.A.
Member

Re: How to use the XY graph

Message contains an attachment

Thank You, it worked!

Can you please re-explain why the previous pallete didn't do the job?

Thank you

altenbach
Knight of NI

Re: How to use the XY graph

Simplest would be "A:single plot" at the very top of my image above. Build the complex points inside the loop and autoindex at the loop boundary. Wire the 1D complex array directly to the graph terminal.
A.A.A.
Member

Re: How to use the XY graph

Message contains an attachment

I'm sorry altenbach but I'm having hard time understanding you. If I try directly wiring it to the graph I'm getting an error; yet it is an Auto-indexed tunnel.

 

Is there something wrong with the loop?

 

altenbach
Knight of NI
Solution

Re: How to use the XY graph

You did not form the complex number from x an y inside the loop. Look at my example!
A.A.A.
Member

Re: How to use the XY graph

Message contains an attachment

Ok, I understood you now. Yeah it worked. Nice idea Smiley Wink

 

Thank you for your help altenbach and johnsold