6.7.3 Stack Lines by Y Offsets


Video Image.png Video Text Image.png Website blog icon circle.png Blog Image 33x33px.png

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

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 : Stacked 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. Click on the X axis, and select Axis Scale button Axis Scale button.png in the Mini Toolbar to open the Axis Scale - X dialog. Set To value 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 tab
    Fill Color = LT Yellow
    Stack Lines by Y Offsets tutorial 4.png
    Dimensions tab
    Units = scale
    Left = 0.25
    Top = 9000
    Right = 3.75
    Bottom = 5000
    Stack Lines by Y Offsets tutorial 5.png
  3. Click OK to close the Object Properties dialog.
  4. Select Insert: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 once on the top data plot to select it.
    Stack Lines by Y Offsets tutorial 7.png
  2. Drag with 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.