# 6.8.3 Stack Lines by Y Offsets

## Summary

This tutorial will demonstrate how to create a graph with stack lines by Y offsets.

Minimum Origin Version Required: Origin 2015 SR0

 Aside from the stacked individual line plots described in this tutorial, you can create stacked line plots comprised of sub-groups of lines, with offsets created between sub-groups. See the Plot Details Stack tab for details.

## What you will learn

• How to create a graph with stack lines by Y offsets
• How to customize a rectangular object
• How to add a new XY scaler

## Steps

This tutorial is associated with the Tutorial Data project:<Origin EXE Folder>\Samples\Tutorial Data.opj.

#### Create a Stack Line Plot

1. Open the Tutorial Data project and browse to folder Stack Lines by Y Offsets in Project Explorer.
2. Highlight all the columns in the data worksheet of Book6A, and choose menu Plot > Basic 2D : Stack Lines by Y Offsets to create a graph with stack lines by Y offsets.

#### Customize the Stack Line Plot

1. Delete the following objects by selecting them and pressing the Delete key on your keyboard:
Legend
Y axis
Y axis labels
Y axis title
X axis title
2. Double click on the X axis to open the Axis dialog. On the Scale tab, change the value of To to 10. Click OK to close the dialog.

1. Click the Rectangle button on the Tools toolbar and then create a rectangle on the graph.
2. Double click on the rectangle to open its properties dialog. Change the following settings.
Fill Pattern tab
Fill Color = LT Yellow
Dimensions tab
Units = scale
Left = 0.25
Top = 9000
Width = 3.5
Height = 4000
3. Click OK to close the Object Properties dialog.
4. Select Graph: New XY Scaler from the Origin menu to create a new XY scaler.
5. Double click on the scaler to open the Scaler Properties dialog. Set the following properties in the dialog:
Font Settings branch
Font Size = 24
X branch
Length(Scale) = 2
Title = 2
Y branch
Position = Right
Length(Scale) = 2500
Title = 2500
6. Click OK to close the Scaler Properties dialog.
7. Move the scaler object onto the rectangle you created.

#### Drag and Change Plot Offset

1. Click on the top data plot (purple one) twice to select it. (Click only once will select the whole group):
2. Click and drag the mouse to move the data plot.
Note: an alternative is to go to the Offset tab in Plot Details dialog and change the Y offset.