OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 
Skip Navigation Links
All BooksExpand All Books
Quick HelpExpand Quick Help
GraphingExpand Graphing

1.35 FAQ-151 How do I add the Origin Project Path to a text label?

Last Update: 10/14/2016


You may want to add the path/location of your Origin Project on disk as a label in your graph so that when the graph is printed that information is available for reference.

In order to do this you need to first save your project to disk (if not already saved).

Then do one of the following:

Method 1

  1. Right click on the graph where you want to place the label, and select Add Text... context menu.
  2. In the label edit box, add this string:
    %X%G
    Add other characters to your label as desired, and then click outside to exit edit mode.
  3. Right click on the label and select the Properties context menu.
  4. Go to Programming tab, set the Link to (%, $), Substitution Level drop-down to 1 and click OK.
  5. In the Text tab, change the text so that it reads as below:
    \v(%X%G)
    and press OK to close dialog.
    NOTE: It is necessary to enter \v() in the Text tab of Text Object dialog. Making this change in the label directly using in-place editing does not work.

Method 2

  1. Right click on the graph where you want to place the label, and select Add Text... context menu.
  2. In the label edit box, add this string:
    %X%G
    Add other characters to your label as desired, and then click outside to exit edit mode.
  3. Right click on the label and select the Properties context menu.
  4. Note down the Object Name property such as Text1.
  5. Check the Link to variables (%,$) check box and click OK.
    NOTE: In versions 8.5.1 and higher, set the Link to (%, $), Substitution Level drop-down to 1 and click Apply button.
  6. Go to Text tab, check the Verbatim box, click Apply button. Or, close the dialog, open Script Window and type the following command
    <Object name from step 4>.verbatim=1
    and press Enter.

Keywords:\, \v, verbatim, location, disk, OPJ

Minimum Origin Version Required: 7.5

 

© OriginLab Corporation. All rights reserved.