2.5.20 layextract

Menu Information

Graph : Extract to Graphs (or in the context menu of a selected layer)

Brief Information

Extract specified layers to separate graph windows

Command Line Usage

1. layextract igp:=graph1 fullpage:=1;

2. layextract layer:="1:4" keep:=0;

3. layextract layer:=1:4 keep:=0;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Graph igp

Input

GraphPage

<active>

Specifies the graph to manipulate. By default, the active graph will be used as input.

Extracted Layers layer

Input

string

1:0

Specifies the layers to extract. Note: to specify multiple layers, use colon to separate the first layer and the last layer to be manipulated. For example, "1:3" means the first, second and the third layer. You can add additional items using comma as separator, as in "1:3,5:7,9:11".

Keep Source Graph keep

Input

int

1

Specifies whether or not to keep the source graph. The default is 1, which means that the source graph will be kept.

Full Page for Extracted fullpage

Input

int

0

Specifies whether to resize the layers to full page after they are extracted. The default is 0, which means that the extracted layers will not be resized.

Description

This X-Function can be used to extract graph layers to separate graph windows.

Examples

1. Create a new worksheet, import the file \Samples\graphing\waterfall2.dat.

2. Highlight column B to E to plot a 4 panel graph.

3. Run layextract -d in script window to open the layextract dialog.

or
Select a layer, and right-click on the selected layer and choose Extract to Graphs... from the context menu to open the dialog.
Layextract 2.png

4. In the dialog, set the Extracted Layers as 1:3 to extract the first three layers.

Layextract 1.png

5. Click OK to extract the layers.

Related X-Functions

merge_graph