
Contents |
New Layer(Axes)
Create a new layer on the active graph
1. layadd type:=topX;
2. layadd igp:=graph2 userdef:=1 bottom:=1 top:=1 linkto:=1 yaxis:=straight;
| 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.
|
| 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.
|
| 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.
1. To add a right Y axis to the graph and link this new layer to the active layer, select Graph: New Layer(Axes): (Linked) Right Y.
2. To add a linked left Y and a linked right Y axes, select Graph: 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.