18.104.22.168.1 The (2D Function Plot) Function Tab
To create data for 2D function plots, right-click the plot and choose Make dataset copy of Function; or if on the Function tab in Plot Details, click the Workbook button at the bottom of the dialog box.
Specify the number of data points to display in the function plot.
From and To
Specify the beginning and ending of the x range.
Select this check box to allow Origin to automatically decide the X range. This is selected by default, and is available only when Add to Active Graph is selected. You can clear this checkbox to specify the beginning and ending of the X range in the From and To text boxes.
Enter the formula of the curve here.
Common mathematical and statistical distribution functions are available by clicking the triangle button to the right of the Y(x) text box. For detailed information about these functions, please read built-in LabTalk functions. In addition, you can type a function directly in the text box using any operators recognized by Origin (for multiplication, you must include the multiplication operator (*)). You can also use a named range in your expression.
If you click the Show-in-separate-window button under the triangle button, a new Y(x)= dialog with a wider input box and a Preview panel will open. The preview panel shows a column calculated from Y(x) you defined. You can check the result and edit the function body in the input box if needed.
Define names and values of variables. These variables can be used in formula definition. If a variable is not defined yet but is used in function body, it will be highlighted in red.
Show LabTalk Script
Select this check box to define variables using LabTalk scripts. If you have already defined some variables in the Definition table, select this check box to show the LabTalk script equivalents of these definitions.
In addition to built-in functions or user-defined functions, any LabTalk scripts are supported here. You can use range variables, string variables, loops, and LabTalk-accessible X-Functions. Scripts entered here will be run before the formula definition.
There is a quick way to load a conditional control or loop script when you are doing script in Before Formula Script box. Right click on Before Formula Script box to select Conditional/Loop at the bottom of the context menu, and then select a conditional structure or loop you desired in the flyout. The syntax will be added at cursor with simple comments.
Output Function plot
The drop-down option list on the bottom-left corner is used to specify how to output the function plot curve, Create New Graph, Add to Active Graph or Add to Active Graph and Rescale.
|Note: This checkbox is only available when a 2D Graph window is active. If the active window is not a 2D Graph window, it will create the 2D Function plot in a new graph window.
Since Origin 2022, you can click Add button to add a function plot into active graph window or a new graph window without closing the dialog. In this way, you can add multiple function plots into one graph window at one time.