Plot XY VI
- Updated2025-01-28
- 8 minute(s) read
Plot XY VI
Takes a picture and an array of points and appends a picture that represents an XY graph of the data.
To create controls for the cluster inputs in this VI, right-click the cluster terminal and select Create»Control from the shortcut menu.

Inputs/Outputs
![]() [user-specified font] specifies the specific font characteristics for the text to draw. The VI ignores this input unless desired font is User-specified Font.
![]() desired font specifies the text font.
![]() picture is the picture to which you want to add the graph. The default is an empty picture. ![]() data is an array of points, where each point is a cluster of x and y pixel coordinates.
![]() dimensions specifies the top left point of the drawn bitmap.
![]() top left point specifies in coordinates where to place the top-left corner of the image in the new picture.
![]() cartesian axis attributes specifies the range and format for the x- and y- axes. If the minimum and maximum values are the same, or if you do not wire the cartesian axis attributes input, the VI calculates the minimum and maximum values from the data.
![]() cartesian grid cosmetics specifies the style for the grid of the graph.
![]() XY plot cosmetics specifies the plot color, the style for the plot, and the baseline. This VI uses the baseline only if the XY plot type is comb plot.
![]() sized scatter plot cosmetics specifies the range of sizes for frequency distribution points, assuming the xy plot type is sized scatter plot or sized-colored scatter plot.
![]() new picture is the picture that contains the plot. You can wire this output to any other picture input to add more drawing instructions to the picture. You also can wire this output to the Picture to Pixmap VI to obtain an image data cluster. You then can save the image data to a file using the Graphics Formats VIs. |
This VI ignores the values of the x minimum, x maximum, y minimum, and y maximum subparameters of the cartesian axis attributes input. The VI ignores the subparameters because it automatically scales the axes. Use the Plot Multi-XY VI if you do not want to use automatic scaling.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Graphics and Sound\Picture Plots\Waveform and XY Plots.vi
- labview\examples\Graphics and Sound\Picture Plots\Artificial Strip Chart.vi