Move plot(s) from the active layer to another layer
Minimum Origin Version Required: 2017 SR1
1. laymplot plot:="2 4" show:=1 rescale:=both; //Move second and forth plot in current layer to a new layer with X linked and Y independent.
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 |
---|---|---|---|---|
Plot to Move | plot |
Input string |
|
Specify the index of the data plot which you want to move. If the plot has been grouped with other plots, this plot will be moved out of the group first. If you want to move multiple plots at the same time, enter their plot indices with space as the separator. |
Target Layer | target |
Input int |
|
Specify the index of the target layer to which you want to move the plot. The default value 0 means to move the plot to a new right-Y layer. |
Layer Setting | axis |
Input int |
|
This option is only available when Target Layer is set to 0. Specify how to link the axes of the new layer and active source layer.
Option list:
Note: the position of independent X/Y axis bases on the current X/Y axis position of active layer. If the active layer has both X and Y axes, the top X/right Y axis of the newly added layer will have 11% offset to the rightmost/topmost axis of the active source layer. |
Show Linked Axis for Both Sides | show |
Input int |
|
Specify whether to show the linked axis on both sides. For example, if you link the X axes of new layer to the active source layer straightly, with this check box checked, both the bottom and top x axes will be shown. |
Rescale Layer | rescale |
Input int |
|
Specify which layer you want to rescale.
Option list:
|
This X-Function is used to move the specified plot(s) from active layer to an existing layer or new layer.
laymplot -d;
in Script Window to open the laymplot dialog. Set as below:
Then the second Y axis's elements will follow the color of the third curve(the moved one).