Displaying Labels with Multiple Lines of Text in Grapher

To show plot labels with multiple lines, you will need to insert extra characters into the worksheet's label column. For instance, suppose your data looks like the data shown below:

multiple_label_data.png
Sample data with X, Y, and label columns.

 

In the third line, at the &, you may want a second line for the label. Click in cell C4 and place the cursor just before the &. Type \n and leave a space after the text. If you don't want the & to appear, you can remove the &. Your text might look like:

multiple_label_data_slashn.png
The same sample data with X, Y, and label columns.
The last label has the \n designator, to indicate a new line.

 

Now that the data has been updated, follow these steps to create the graph and add the labels:

  1. Highlight columns A and B and click the Home | New Graph | Basic | Scatter Plot command (Scatter Plot Icon).
  2. Click on the scatter plot layer in the Object Manager to select it.
  3. In the Property Manager, click on the Labels tab.
  4. Change the Label variable to Column C: Label.


Label_Settings.png

The above instructions viewed in the Object Manager and Property Manager.

 

multiple_label_graph.png
The scatter plot is created with the label spanning two lines.

 

Updated February 22, 2023

Was this article helpful?
1 out of 3 found this helpful

Comments

0 comments

Please sign in to leave a comment.