6.7.4 Vertical 2 Panel Line

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


This tutorial will demonstrate how to merge and customize two graphs.

Vertical 2 Panel.png

Minimum Origin Version Required: Origin 2015 SR0

What You Will Learn

In this tutorial, you will learn how to:

  • Merge graph windows
  • Customize graph axes after merging
  • Apply a graph theme


  1. Start with an empty worksheet. Select Help: Open Folder: Sample Folder... to open the "Samples" folder. In this folder, open the Graphing subfolder and find the file Vertical_2_Panel_Line.txt. Drag-and-drop this file into the empty worksheet to import it.
    Vertical 2 Panel WKS.png
  2. Select column 2 to column 4, select Plot > Basic 2D: Line + Symbol main menu or click the Line + Symbol button on the 2D Graphs toolbar.
    Vertical 2 Panel Button.png
    The following graph will be created:
    Vertical 2 Panel G1.png
    Go back to the worksheet. Select column 5 to column 8 and click the Line + Symbol button on the 2D Graphs toolbar to create a new graph as shown below:
    Vertical 2 Panel G2.png
  3. To merge the two graphs, select Graph: Merge Graph Windows from the menu. Accept the default settings and click OK. The two graphs will merge in one window:
    Vertical 2 Panel G3.png
  4. Ensure that Layer 1 is selected on the top left corner of the graph and double-click on the Y axis of Layer 1 to open the Axis dialog. In the Scale tab, set the dialog options as shown below:
    Vertical 2 Panel Layer1 Yaxis.png
  5. Click Horizontal icon on the left panel, and go to Tick Labels tab, uncheck the Show box to hide the tick labels in Layer 1 and click OK to apply settings.
    Vertical 2 Panel Layer1 Xaxis.png
  6. Delete the X axis title in Layer 1. Set the same scale for the Y axis of Layer 2. The graph should now appear as shown below:
    Vertical 2 Panel G4.png
  7. Apply a theme to add a top X axis and a right Y axis. Select Preferences: Theme Organizer from the main menu to open the Theme Organizer dialog. Activate the Graph tab and select the Opposite Lines from the table and click the Apply Now button. Use the Close button to close the dialog.
    Stack Column Theme Organizer.png
  8. Select the Legend of Layer 1 and right-click on it to select Properties from the short-cut menu. Set the dialog options as shown below:
    Move the legend to the desired position.
  9. Select the Line button from the Tools toolbar and draw a line on the Layer 1 as shown in the sample image. Hold down the SHIFT key while drawing to ensure that the line is vertical. Double-click on the line to open the Properties dialog of the line object. In the Line tab, select Dash in the Type drop-down list and enter 2 in the Width edit box. Click on the Dimensions tab. Select both the Horizontal Movement and the Vertical Movement check boxes. Click the OK button to finish.
  10. Repeat steps 8-9 for Layer 2.
  11. Select the Text button in the Tools toolbar. To add a title for the graph click in the middle of the graph and enter Cigarette Smoking by Persons 18 Years and Over in the United States. Double-click on the Y axis title of Layer 1 and Layer 2 and enter Percent Who Smoke.
    The final graph should appear as shown below:
    Vertical 2 Panel.png