##

In order to plot x-y data in an XY graph, you will need to convert the data into a cluster of the X and Y array data. The snippet below will allow you to use an XY Graph to plot a 2D array in LabVIEW.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.

- Start with your data in a two dimensional (2D) array
- Use the Index Array function to separate the array into two one-dimensional arrays -- one containing x data and one containing y data.
- Bundle into a cluster which is the expected input type of the XY Graph function.

### Additional Information

Refer to the XY Graph Data Types VI in labview\examples\Controls and Indicators\Graphs and Charts\XY Graph for an example of graphing XY data.