Add Legend

Add a descriptive legend to the plot.

Legend entries are automatically generated, one per previous call to Line Plot, Scatter Plot, or Bar Plot. Provide the name you would like to see on the legend via the “Legend Title” terminal to each of these VIs.

If you wish to omit an object from the legend, simply leave the “Legend Title” terminal disconnected, or supply an empty string.

../_images/Legend.png
int32_in int32_out Plot ID/Plot ID Out
Plot identifier. Plot ID Out always contains the same value as Plot ID.
enum_in Position
Location of the legend on the plot. By default, an appropriate location is chosen automatically.
error_in error_out Error In/Out
Terminals for standard error functionality.

Example

Download Legend.vi, or see Examples for a complete list of examples.

../_images/LegendExample.png

Axis Types

This VI supports both rectangular and polar axes.