2.5.37 mg2layout


Menu Information

Graph: Merge Graphs to Layout

Brief Information

Add selected graphs and arrange them in a new Layout.

Command Line Usage

mg2layout col:=2 row:=1 xgap:=5 ygap:=5 xmg:=10 ymg:=10;

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
Selection option

Input

int

<auto>
Specifies the graphs to be added in layout.

Option list:

  • 0=page:Active Page
    All graphs in the active page.
  • 1=folder:All in Active Folder
    All graphs in the active folder, excluding those in the subfolders.
  • 2=open:All in Active Folder (Open)
    All open graphs in the active folder.
  • 3=embed:All in Active Folder (Include Embedded)
    All graphs in the active folder, including the embedded graphs.
  • 4=specified:Specified
    Graphs specified by the graphs variable.
Graphs graphs

Input

string

<auto>
If the Arrange variable is set to Specified, user can use this text box to enter the names of the graphs to be added in layout. In this case, the browse button to the right of this text box becomes enabled and you can use it to browse for the graphs to be moved. However, if other options are selected for the Move Graphs From variable, this textbox will be read-only. You can see the names of the graphs that will be added, but you cannot edit the content of this text box.
Number of Columns col

Input

int

<auto>
Specifies the number of columns in layout. The graphs will be arranged on a row by col grid when added into layout.
Number of Rows row

Input

int

<auto>
Specifies the number of rows in layout. The graphs will be arranged on a row by col grid when added into layout.
Direction dir

Input

int

0

Specifies the direction for arranging graph layers.

Option list:

  • 0=horz:Horizontal First
    Arrange layers in horizontal direction first
  • 1=vert:Vertical First
    Arrange layers in vertical direction first
Horizontal Gap xgap

Input

int

0
Specifies the horizontal gap between adjacent layers.
Vertical Gap ygap

Input

int

0
Specifies the vertical gap between adjacent layers.
Left/Right Margin xmg

Input

int

0
Specifies the left/right margin to the new graph page.
Top/Bottom Margin ymg

Input

int

0
Specifies the top/bottom margin to the new graph page.

Description

This X-Function merges the specified graphs into a new layout. In the new layout, the source graphs are arranged in a row by col grid.

Related X-Functions

merge_graph, g2layout


Keywords:Layout