6.8.3 Stack Lines by Y Offsets


Summary

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

Stack Lines by Y Offsets tutorial 1.png

Minimum Origin Version Required: Origin 2015 SR0

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: Y-offset/Waterfall: 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
    Stack Lines by Y Offsets tutorial 2.png
  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.
    Stack Lines by Y Offsets tutorial 3.png

Add XY Scaler

  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
    Stack Lines by Y Offsets tutorial 4.png
    Dimensions tab
    Units = scale
    Left = 0.25
    Top = 9000
    Width = 3.5
    Height = 4000
    Stack Lines by Y Offsets tutorial 5.png
  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
    Stack Lines by Y Offsets tutorial 6.png
  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):
    Stack Lines by Y Offsets tutorial 7.png
  2. Click and drag the mouse to move the data plot.
    Stack Lines by Y Offsets tutorial 8.png
    Note: an alternative is to go to the Offset tab in Plot Details dialog and change the Y offset.