1.37 FAQ-154 How do I customize the default axis titles and Legend?

Last Update: 1/19/2018

The following sections are about how to customize the default axis titles and legend for all future graphs you create. If you only want to edit current graph

  • You can double click the axis and type in what you want or edit the title text with LabTalk substitutions notations. such as %(?X,@LA)/%(?X,@LU).
  • You can right click legend and choose Update Legend to define your legend syntax.

You can save the graph as graph template for future use.


Customize Default Axis Title by Tools: Options

This method only works in Origin 2016 and newer versions.

For example, if you want to change the graph's axis titles from Long Name (Units) to Long Name / Units, you can follow the steps below to change them.

  1. Choose Tools:Options from Origin menu
  2. In the opened dialog, choose Axis tab, click the Triangle button next to the Unit Display for Axis Title box and choose /<U>
    OptionsSetAxisTitleUnit.png
  3. When you plot graphs in the future, the axis titles should look like
    CutomizeAxisTiles2.png

Customize Default Axis Title and Legend by Origin.ini File

  1. Close Origin.
  2. Find Origin.ini file located in your User Files Folder of Origin in Windows Explorer.
  3. Open it and go to [Text] section.
  4. Find the corresponding XTitle=, YTitle= and Legend= line to customize the part after =. It can be any text, including those that contain LabTalk substitutions notations. Note: ; Make sure ; is removed before XTitlte=, Y=Title= and Legend= if you want to customize it.

For example, if the [Text] section of origin.ini contains the following:

[Text]
;Use workbook long name for default legend
Legend=\L(%d) %%(%d,@WL)\r\n

;The default X axis title is the long name
;of the first independent dataset
XTitle=%%(1X, @LL)
;The default Y axis title is the long name + unit
;of the first dependent dataset 
YTitle=%%(1Y, @LG)

Creating a default scatter plot from column B in the workbook shown in the following screenshot will yield the graph to its right:

Customize default legend.png

Note that the long name of the workbook is "Measured Data". It is displayed in the legend box. The long name of the X column ("Time") is used for the X axis title. The Y axis title is the long name ("Temperature") and the unit ("oc") of the Y column.


Keywords:options, unit display, axis title