2.5.29 layswap

Brief Information

Swap the dataplots' positions and order of two graph layers.

Command Line Usage

// 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;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Layer A igl1

Input

GraphLayer

<unassigned>

Specifies the name of the first graph layer.

Layer B igl2

Input

GraphLayer

<unassigned>

Specifies the name of the second layer.

Reorder reorder

Input

int

0

Controls whether to swap the order of layers in addition to swap dataplots' positions within each layer.

Description

This X-Function can be used to swap the dataplot positions and order of two layers.

Related X-Functions

laysetpos, laymanage