6.7.1 Double Y

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


This tutorial will show how to create a graph with double Y axes.

Double Y tutorial 1.png

Minimum Origin Version Required: Origin 2015 SR0

What you will learn

  • Create a graph with double Y axes
  • Customize scatter plots
  • Change axis scale, type, title, etc.
  • Update legend


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

  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.
  3. Customize scatter plots:
    • Double click on the plot to open the Plot Details dialog box. In the left panel, select the plot in Layer1, and set the plot type to Scatter, symbol to Triangle and size to 10 (Hint: the box accepts text entries).
      Double Y tutorial 2.png
    • Choose the first plot in Layer2, then change the Plot Type, Size and Color as shown below.
      Double Y tutorial 3.png
    • Choose the Error bar plot in Layer2, then change Color to Gray in the Error Bar tab.
    • Click OK to apply your customizations and close the dialog box.
  4. Double click on X axis to open the Axis dialog box. On the Scale tab for X Axis, set the X axis scale to be from 92 to 83 with increment of -2.
    Double Y tutorial 5.png
  5. Click Vertical icon on the left panel and go to the Scale tab for Y Axis and apply the following settings to the left Y axis:
    Double Y tutorial 4.png
  6. Click Horizontal icon on the left panel to go to Title tab and change the X Axis title to Transition Temperature (K):
    Double Y tutorial 6.png
  7. Click Left icon on the left panel to change the Y Axis title to Deposition Pressure (Torr).
  8. Set the Layer drop-down to 2 to switch to Layer 2 controls. Repeat the settings as in step 5 - 6, but with scale From = 765, To = 795, Type = Linear. For Major Ticks, change the Value for Increment to 10. Go to Title tab, select the Right icon on the left panel and change Text to Annealing Temperature (\+(0)C).
  9. Go to the Line and Ticks tab and set both Major Ticks and Minor Ticks to In and click OK to apply settings.
    Double Y tutorial 7.png
  10. Click the legend to select it, then right-click and choose Properties from the shortcut menu. This opens the Object Properties dialog box. Go to Frame tab, change Frame to Box. In the Text tab, enter the following:
    \l(1.1) As Grown
    \l(2.1) Annealed
    Double Y tutorial 11.png
  11. Click OK to close the Properties dialog box. Move the legend to an appropriate position.