8.8.1 Adding Labels to Plots

Video Image.png See more related video:Labeling Data Plots Based on Data in any Worksheet Column

After creating a graph, you might need to add labels to annotate the plot elements. The dialog/tools below can be used to do this task


Contents

Adding Labels with Label tab of the Plot Details dialog

You can use the Label tab of the Plot Details dialog to add labels to all points or specified points of a data plot. This Label tab can be found on the right side of the Plot Details dialog when a data plot icon is selected on the left panel.

To add labels using Plot Details controls

  1. Double-click on the data plot you want to label.
  2. On the Plot Details dialog that opens, make sure the data plot icon is selected on the left side of the dialog and go to the Label tab on the right side of the dialog.
  3. Select the Enable check box.
  4. Note that for some plot types, you can opt to Show at Specified Points Only and enter a space-separated set of point indices in the text box. Use keyword "Begin" to label only the first point and keyword "End" or "0" to label the last point in the plot.
  5. Use the Label Form list with the Numeric Display Format and Format String to construct your label. Note that there is a Label Form = Custom option that allows you to label points with worksheet and project metadata.
  6. Customize other label-related settings as needed (font, color, rotation, offsets, position, auto-reposition, leader lines, etc) using Label tab controls; or close the Plot Details dialog and customize labels using buttons on the data label Mini Toolbar or the Style and Format toolbars.


For help with specific Label tab controls, see:

Note: Values in a pre-designated Origin Label column or in an Excel worksheet column can be used to label data points in a graph. Labeling points in this way is an older method and it remains primarily for backward compatibility. In earlier versions of Origin, designated Label columns appeared as a separate dataset in Plot Details. Beginning with Origin 2020b, designated Label columns will simply be treated as a display option of the data plot and will be controlled via a common Label tab.

Adding Labels with Mini Toolbar

Using Show Data Labels button

Since Origin 2020, we have introduced the context-sensitive Mini Toolbars for faster graph customization. You can also use the controls on it to label the data points:

Labeling plots contour reposition labels.png


Choose a Label Source

Once you have enabled labels (using either Plot Details Label tab controls or the Mini Toolbar Show Data Labels button), you need to specify a Label Source:

Adding Labels with Text or Annotation tool

With the Text tool Button Text Tool.png in Tools toolbar, you can add text labels anywhere in the graph window, only one label at a time.

With the Annotation tool Button Data Annotation.png in Tools toolbar, you can precise pick and label specific points on 2D and Contour plots.