# 8.11.2 The Merge Graph Dialog Box

You can open the Merge Graph Windows Dialog Box from the menu Graph: Merge Graph Windows, when a graph is active.

This function merges the specified graphs into a new graph window. In the new graph, the source graphs are arranged in row by col grid.

## Graphs

Lists graphs in the order in which they are to be merged. Buttons at the top of the box allow for selecting and sorting of graphs. Note the flyout menu for graph selection.

Active Page All graphs in the active page. All graphs in the active folder, excluding those in the subfolders. All graphs in the active folder, including those in the subfolders. All open graphs in the active folder. All graphs in the active folder, including the embedded graphs. All graphs in the current project. Opens the Graph Browser (see next section).

### Graph Browser

The Graph Browser is used for adding graphs to the Graphs list. Using the folder filter drop-down in the upper-left corner, you can browse all graphs in the folder and then, using the and buttons, add or remove graphs from the Graphs list.

A couple of things to note:

• By checking the Show Embedded Graph box, you can browse and include graphs that have been embedded in worksheets (and may no longer exist as standalone graphs).
• You can sort or rearrange graphs in the right-hand panel by (a) clicking on the Name heading or (b) by dragging the button that is just to the left of the graph Name.

## Keep Source Graphs

Specifies whether or not to keep the source graphs after the merging is performed.

## Rearrange Layout

Specifies whether to rearrange the layers that belong to graphs that include multiple layers.

Note that when merging multi-layer graphs that have linked layers, each graph will be treated as a unit thus preserving layer linking relationships within individual graphs.

## Arrange Settings

Settings to arrange layers:

## Spacing (in % of Page Dimension)

Horizontal Gap Specifies the horizontal gap between adjacent layers. Specifies the vertical gap between adjacent layers. Specifies the left margin to the new graph page. Specifies the right margin to the new graph page. Specifies the top margin to the new graph page. Specifies the bottom margin to the new graph page.

## Page Setup

 A new default Orientation setting -- Auto -- is added for Origin 2021b. As explained below, this will increase page dimensions. To merge graphs onto a page of the same dimensions as the original graphs, set Orientation to Landscape or Portrait.
Orientation Specifies the orientation for the new graph page, inclucing: Auto Landscape Portrait By default, Auto is selected. That means, the layer size from the merged graphs will be keep, the page height and width is controlled by the sum of layer size and gaps. Specifies the width of the new graph page. It will un-available and just show the width of the page when you select Auto for Orientation. Specifies the height of the new graph page. It will un-available and just show the height of the page when you select Auto for Orientation. Specifies the unit for the new graph page.

## Scale Elements

Scale Mode 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. Auto: Uses the settings in the source graphs. Scale with Layer Frame: Scales the layer elements proportionally with the layer. Fixed Factor: Determines the size of the layer elements relative to their original size (font size, symbol size, and line width, etc.). The size of these elements is determined by multiplying their original size by the scale factor specified in the Fixed Factor edit box. This variable is available only when the Scale drop-down is set to Fixed Factor. It specifies the fixed scale factor.
 Note: If you have set a fixed factor in the Scale Elements group in Size tab of Plot Details for the graph layer, then when you merge the graph with others, and set Orientation = Auto under Page Setup branch, the Fixed Factor will be overwritten by 1.

Label Text Controls for adding and formatting labels to merged graphs. None: Labels are not added to graphs. A: The Labels are shown in upper case (A, B, C...) a: The Labels are shown in lower case (a, b, c...) Custom: Define the label in the text box below. This text box displays when Custom is selected in the Label Text drop-down list. Specify the custom label texts. When you select a$and A$, the lowercase and uppercase letters will be enumerated to label the merged layers, such as (a, b, c...) and (A, B, C...). When you select r$and R$, the lowercase and uppercase Roman numerals will be enumerated to label the merged layers, such as (i, ii,iii...) and (I, II, III...). When you select n$, the layer index will be enumerated to label the layers, such as (1, 2, 3...). When you select h$, the character # will be added into the layers. When you select Graph ## in the Custom text box. Labels in the form Graph 01, Graph 02, Graph 03, etc., will be added to the graphs. The string register %H stores the name of the active window title. Choose this option to label with the window Short Name. Note that this is label is a static label. If the source window title is changed, the text label is not updated. The Enable Substitution check box is selected by default, substitution notation and enumeration code are supported. For enumeration code, %(u$) and %(v$) enumerate uppercase and lowercase letters. $(i) and # enumerate index. %(p$) represents character #. Controls label position. Labels can be displayed at Top Left Outside, Top Left Inside, Top Right Outside, Top Right Inside, Top Center Inside, Top Center Outside, or Bottom Center Outside.