6.7.1 Double Y Graph


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

Summary

This tutorial will show how to create a graph with double Y axes in only one layer.

Double Y tutorial 1.png

Minimum Origin Version Required: Origin 2023

What you will learn

  • Create a graph with double Y axes
  • Customize scatter plots
  • Change axis scale

Steps

This tutorial is associated with the project: \Samples\Graphing\Double-Y.opj.

Method 1: Using Built-in Double-Y Template

  1. Open the project <Origin Installation Directory>\Samples\Graphing\Double-Y.opj and activate the workbook.
  2. Highlight four columns of data in the worksheet, then choose menu Plot > Multi-Panel/Axis : Double-Y to create a graph with double Y axes.
    Double Y tutorial 2.png
  3. Click on the plot, in the popup mini toolbar, click the button Change Plot to to select Scatter to change the plot type for all the plots.
    Double Y tutorial 3.png
  4. Click on one scatter point of second plot, in the popup mini tolbar, switch to the Single Plot tab and set the color to Blue.
    Double Y tutorial 4.png
  5. Click on bottom X axis, in the popup mini toolbar, click the button Axis Scale to open the Axis Scale dialog to set the axis scale for Bottom X, Left Y and Right Y.
    Double Y tutorial 5.png
  6. You will get the final graph as below:
    Double Y tutorial 1.png

Method 2: Adding Right Y to the Graph with Left Y

  1. Highlight four columns of data in the worksheet, then choose menu Plot > Basic 2D : Scatter to create a scatter graph.
    Double Y tutorial 6.png
  2. Double-click on the scatter to open the Plot Details dialog. Select seond plot in the left panel and go to Display tab and select Right Y Axis to make this plot against the right Y axis. Note: You can also use the Object Manager to assign a plot to a right Y axis as outlined here.
    Double Y tutorial 7.png
  3. Click on the second plot, in the popup mini toolbar, change the symbol color to Blue. And change the symbol shape to Square.
    Double Y tutorial 8.png
    Double Y tutorial 9.png
  4. Click on the white spcae of current layer to add layer frame from the mini toolbar.
    Double Y tutorial 10.png
  5. Set the axis scale just like what we do in the Step 5 of Method 1.
  6. You will get the same graph as that in Method 1.
Note: This kind of double-Y graph only has one graph layer, which is different from the 2Ys graph.

For the versions earlier than Origin 2023, Origin doesn't support two different axis scales for right Y and left Y in same layer simultaneously, so you have to plot the 2Ys graph to implement this graph.