Insert: New Layer(Axes)
Add a new layer to graph
1. layadd type:=topX;
2. layadd igp:=graph2 userdef:=1 bottom:=1 top:=1 linkto:=1 yaxis:=straight;
3. layadd userdef:=1 bottom:=0 top:=1 linkto:=1 xaxis:=custom x1:=X1+10 x2:=X2+50 yaxis:=custom y1:=20 y2:=70;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input Graph | igp |
Input GraphPage |
|
Specifies the graph to be manipulated. |
Layer Type | type |
Input int |
|
Specifies the type of the layer to be added.
|
User Defined | userdef |
Input int |
|
Specifies whether or not users define the properties of the layer by themselves. |
Bottom | bottom |
Input int |
|
Specifies whether or not to show a bottom X axis. This variable is editable only when the type variable is set to User_Defined. |
Left | left |
Input int |
|
Specifies whether or not to show a left Y axis. This variable is editable only when the type variable is set to User_Defined. |
Top | top |
Input int |
|
Specifies whether or not to show a top X axis. This variable is editable only when the type variable is set to User_Defined. |
Right | right |
Input int |
|
Specifies whether or not to show a right Y axis. This variable is editable only when the type variable is set to User_Defined. |
Link To | linkto |
Input int |
|
Specifies the index of the parent layer, to which the new layer is linked. This variable is editable only when the type variable is set to User_Defined. |
X Axis | xaxis |
Input int |
|
Specifies how to link the X axis of the new layer to the X axis of the parent layer. This variable is editable only when the type variable is set to User_Defined.
|
X1 | x1 |
Input string |
|
This variable establish the From value for the axes of the added layer. Type the desired mathematical relationship to set the initial scale value for the child layer in terms of the parent layer scale value. When userdef:=1 xaxis:=custom, this variable is available.
|
X2 | x2 |
Input string |
|
This variable establish the To value for the axes of the added layer. Type the desired mathematical relationship to set the final scale value for the child layer in terms of the parent layer scale value. When userdef:=1 xaxis:=custom, this variable is available.
|
Y Axis | yaxis |
Input int |
|
Specifies how to link the Y axis of the new layer to the Y axis of the parent layer. This variable is editable only when the type variable is set to User_Defined.
|
Y1 | y1 |
Input string |
|
This variable establish the From value for the axes of the added layer. Type the desired mathematical relationship to set the initial scale value for the child layer in terms of the parent layer scale value. When userdef:=1 yaxis:=custom, this variable is available.
|
Y2 | y2 |
Input string |
|
This variable establish the To value for the axes of the added layer. Type the desired mathematical relationship to set the final scale value for the child layer in terms of the parent layer scale value. When userdef:=1 yaxis:=custom, this variable is available.
|
Auto Offset Overlapped Axes | offset |
Input int |
|
Specify whether to set an offset to the axes of new added layer so that axes are not overlapped and users can select the layers conveniently. The default set is 0. |
Activate New Layer | activate |
Input int |
|
Specify whether to activate the new added layer. |
This X-Function can be used to add a new layer to the active graph. You can specify which axes will be displayed and whether to link the new layer to the active layer. When the new layer is linked to a parent layer, you can also specify how the axes scales are linked. Please note, except the first layer type "Bottom-X Left-Y", selecting other layer type will add a layer with Unit been set to % of Linked Layer.
1. To add a right Y axis to the graph and link this new layer to the active layer, select Insert: New Layer(Axes): Right Y(Linked X Scale and Dimension) .
2. To add a layer linked to active layer with a top X and a right Y axes, and customized Axis scale, select Insert: New Layer(Axes): Open Dialog...and then change the settings in the dialog as the screenshot below (suppose the active graph is Graph1):
3. Click OK to close the dialog.