Plotting Data on 2D Graphs
- Updated2026-02-27
- 2 minute(s) read
Use the 2D graphs—the compass plot, error bar plot, feather plot, and XY plot matrix—to plot data in two dimensions.
When you add a 2D graph to the front panel, the graph appears on the block diagram with a corresponding helper VI:
- 2D Compass Plot Helper VI
- 2D Error Bar Plot Helper VI
- 2D Feather Plot Helper VI
- XY Plot Matrix Helper VI
To plot data on a 2D graph, complete the following steps.
- Add a 2D graph to the front panel.
- Select a polymorphic instance from the helper VI on the block diagram.
-
Configure the appearance of the graph interactively or programmatically.
Option Description Interactive Use the graph Properties: - Right-click the 2D graph on the front panel.
- Select Properties from the shortcut menu and modify the options on the tabs of the dialog box.
For the compass plot, error bar plot, and feather plot, use the plot legend of the graph:
- Click the plot name to edit the name.
- Change the appearance of an individual plot:
left-click the plot glyph in the legend to display the following
options:
- Line style: Sets the line style of the plot.
- Line width: Sets the width of the plot.
- Size: Sets the arrow size for the Compass and Feather graphs and the error bar size for the Error Bar graph.
- Color: Sets the color of the plot line.
Programmatic Use the Property Node to configure the appearance from the block diagram with LabVIEW properties. - Wire data to each input to graph the plot.
- Run the VI.
Refer to the labview\examples\Controls and Indicators\Graphs and Charts\Math Plots - 2D directory for examples of plotting data on a 2D graph.
Related Information
- Types of Graphs and Charts
LabVIEW includes specific types of graphs and charts. Different types of data suit each type of visualization.
- Manipulating Application and VI Settings