Insert: Straight Line
Add a vertical or horizontal line to graph layer
Minimum Origin Version Required: 9.0
addline type:=1 value:=12 select:=1 name:=vline1;
Please refer to the page for additional option switches when accessing the x-function from script
Input
int
Option list:
double
You are also allowed to enter a LabTalk expression or an expression that incorporates one of Origin's built-in statistical functions, see the details here.
string
If an object is made non-selectable it can be removed via script: label -r ObjectName; or you can use the Edit : Button Edit Mode menu option to make it selectable.
label -r ObjectName;
If an object is made non-moveable it can be removed by selecting it, right click and select Properties... to enter a new position on the Coordinates tab of the Object Properties dialog that opens.
This X-Function can be used to add vertical or Horizontal line on the graph.
This example will show you how to add a vertical line in a graph with categorical axis.