29.7.5 Stack Graph

Stack Graph 02.png

Data Requirements

Select at least one Y column (or a range from at least one Y column). Ideally, select at least two Y columns (or a range of at least two Y columns). If there is an associated X column, X column supplies X values; otherwise, sampling interval of the Y column or row number is used.

Creating the Graph

Select required data.

Select Plot > Multi-Panel/Axis : Stack....


Click the Stack button on the 2D Graphs toolbar.

Stack Graph 01.png

Origin opens the plotstack dialog box.

Stack Graph 03.png

Customize the options in the dialog and then click OK to create the plot.


STACK.OTP (installed to the Origin program folder).


  1. The X-Function plotstack is used when plotting this stacked graph.
  2. Graph layers are stacked vertically or horizontally with the option Stack Direction. Please note, to stack the layers horizontally, there are two options, Horizontal(X-Y Axes Exchanged) and Horizontal. With them, you can decide whether exchange the X and Y axes during stacking layers.
  3. When the worksheet data selection includes a single X column, each Y column will be plotted to its own layer, by default. Alternately, expand Plot Assignment, clear the Auto check boxes and specify Number of Layers and Number of Plots in Each Layer (enter a space separated list).
  4. When the worksheet data selection includes multiple X columns, the number of layers will = equal the number of X columns, and each Y column will plot against the nearest X column to the left of the Y column, by default. As is the case when you have a single X column, you can clear the Auto boxes and specify your own layer and plot configuration. Number of X columns > number of layers is not supported.
  5. Worksheet data are plotted -- starting from the left-most column in the worksheet and moving to the right -- from bottom to top, with Layer1 on the bottom, Layer2 above it, etc.
  6. The X axis in each child layer has a Straight (1 to 1) link with the X axis in Layer1.
  7. The axis titles display the associated worksheet column names.