1.37 FAQ-154 How do I customize the default axis titles and Legend?
Last Update: 1/3/2019
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 Preference: 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.
- Choose Preference:Options from Origin menu
- In the opened dialog, choose Axis tab, click the Triangle button next to the Unit Display for Axis Title box and choose /<U>
- When you plot graphs in the future, the axis titles should look like
Customize Default Axis Title and Legend by Origin.ini File
- Close Origin.
- Find Origin.ini file located in your User Files Folder of Origin in Windows Explorer.
- Open it and go to [Text] section.
- 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:
;Use workbook long name for default legend
;The default X axis title is the long name
;of the first independent dataset
;The default Y axis title is the long name + unit
;of the first dependent dataset
Creating a default scatter plot from column B in the workbook shown in the following screenshot will yield the graph to its right:
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