Swap the dataplots' positions and order of two graph layers.
// Before run this XF, please check that there is an active Graph with at least two layers
layswap igl1:=Layer1 igl2:=Layer2;
layswap igl1:=Layer1 igl2:=Layer2 reorder:=1;
Please refer to the page for additional option switches when accessing the x-function from script
Input
GraphLayer
Specifies the name of the first graph layer.
Specifies the name of the second layer.
int
Controls whether to swap the order of layers in addition to swap dataplots' positions within each layer.
This X-Function can be used to swap the dataplot positions and order of two layers.
laysetpos, laymanage