
Contents |
Merge Graph Windows
Merge selected graph windows into one graph
1. merge_graph option:=open;
2. merge_graph row:=2 col:=3 newlayer:=1 keep:=0;
3. merge_graph option:=project topm:=7 bottommg:=15;
4. merge_graph option:=specified graphs:="graph1"+char(10)$+"graph2";
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Merge | option |
Input int | | Specifies the option for selecting the graphs.
Option list:
|
| Graphs | graphs |
Input string | | Specifies the graphs to be merged. This variable is available only when "specified" is selected for the option variable. Note that any two adjacent graph names should be separated by a "/n" character. In the dialog, you can enter each graph name in a separate row. |
| Keep Source Graphs | keep |
Input int | | Specifies whether or not to keep the source graphs after the merging is performed. |
| Rearrange Layout | arrange |
Input int | | Specifies whether to rearrange the layers that belong to graphs that include multiple layers. |
| Number of Rows | row |
Input int | | Specifies the number of rows in the new graph. The graphs will be arranged on a row by col grid in the new window. |
| Number of Columns | col |
Input int | | Specifies the number of columns in the new graph. The graphs will be arranged on a row by col grid in the new window. |
| Add Extra Layer(s) for Grid | newlayer |
Input int | | Specifies whether to add new layers for empty grids, when the number source graphs is less than the product of the values of the row variable and the col variable. |
| Keep Layer Aspect Ratio | aspectratio |
Input int | | Specifies whether to keep the original aspect ratio of the graph layers. |
| Link Layers | linkarrange |
Input int | | Specifies whether to link the layers that you want to merge. The default is yes. |
| Show Axes Frame | smartarrange |
Input int | | Specifies whether to show axes frame and hide the overlapping axes/ticks of the merged layers. The default is no. |
| Horizontal Gap | xgap |
Input int | | Specifies the horizontal gap between adjacent layers. |
| Vertical Gap | ygap |
Input int | | Specifies the vertical gap between adjacent layers. |
| Left Margin | leftmg |
Input int | | Specifies the left margin to the new graph page. |
| Right Margin | rightmg |
Input int | | Specifies the right margin to the new graph page. |
| Top Margin | topmg |
Input int | | Specifies the top margin to the new graph page. |
| Bottom Margin | bottommg |
Input int | | Specifies the bottom margin to the new graph page. |
| Orientation | portrait |
Input int | | Specifies the orientation for the new graph page.
Option list:
|
| Width | width |
Input double | | Specifies the width of the new graph page. |
| Height | height |
Input double | | Specifies the height of the new graph page. |
| Unit | unit |
Input int | | Specifies the unit for the new graph page.
Option list:
|
| Scale Mode | scalemode |
Input int | | Specifies how the axes, axes labels, legend, data plots, and other objects that are attached to the Layer Frame or Layer and Scales are affected when a layer in the new graph page is resized.
Option list:
|
| Fixed Factor | fixfactor |
Input double | | This variable is available only when the scalemode variable is set to "Fixed Factor". It specifies the fixed scale factor. |
This X-Function merges the specified graphs into a new graph window. In the new graph, the source graphs are arranged in a row by col grid.
In the following example, we merge two graphs (Graph1 and Graph2) into a new graph page: