Plot Waveform VI
- Updated2025-07-30
- 8 minute(s) read
Takes uniformly distributed data and a picture and creates a new picture that represents a waveform graph of the data.

Inputs/Outputs
[user-specified font]
—
[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(Application)
—
desired font specifies the text font.
picture
—
picture is the picture to which you want to add the graph. The default is an empty picture.
bounding rect
—
bounding rect contains the upper-left and lower-right coordinates that describe a rectangle bounding the plot, including the x- and y-axes. Horizontal coordinates increase to the right, and vertical coordinates increase to the bottom.
cartesian axis attributes
—
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.
waveform data
—
waveform data contains the initial X value, the spacing between points along the x-axis, and the y data that you want to plot.
cartesian grid cosmetics
—
cartesian grid cosmetics specifies the style for the grid of the graph.
waveform plot cosmetics
—
waveform plot cosmetics specifies the plot color, the style for the plot, and the baseline. The VI uses the baseline only if the waveform plot type is comb plot or bar plot.
[bar style]
—
bar style specifies the style for bar plots, assuming the waveform plot type is bar plot.
new picture
—
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. |
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\Histogram Plot.vi
[user-specified font]
—
Font Name:
—
Size
—
Strikeout?
—
desired font(Application)
—
picture
—
bounding rect
—
x minimum
—
x precision
—
Y data
—
line color
—
new picture
—