6.4.1 Adding and Arranging Layers
A typical graph page generally includes three elements: a set of X, Y (and Z) coordinate axes, one or more data plots, and associated text and graphic labels. Origin combines these three elements into a movable, resizeable unit called a layer. While a page can contain as many as 121 layers, only one layer can be active at any one time.
What you will learn
- How to tell how many layers a graph has?
- How to tell what data is in what layer?
- How to swap layers
- Click the Import Single ASCII button, , on the Standard toolbar. The ASCII dialog opens.
- In the Origin folder, browse to the Samples folder and then the Graphing folder. Select Wind.dat from the list of files.
- Click Open. The data file imports into the worksheet.
Plotting the data
- Highlight the Speed and Power columns.
- Click the Line button, , on the 2D Graphs toolbar. A line plot is created. It appears that this data would be better plotted on a double-Y graph, a graph with two controlling Y axes.
- Click the X to Close this window. You will be asked if you want to hide or delete the window. Click the Hide button. (If you Delete, you will not be able to Undo, and you will need to re-create the graph. Hiding closes the window from view, but you can later make it visible using the Project Explorer window.)
- The Speed and Power columns should still be highlighted. Click the Double-Y Axis button, , on the 2D Graphs toolbar. This new graph contains 2 layers.
How to tell what data is plotted in a layer?
One way is with the legend:
- Double-click on Graph1 from the Project Explorer window. The graph opens and becomes the active child window.
- Select Format:Page and go to the Legends/Titles tab.
- Set the Auto Legend Translation Mode to Data Range.
- Click OK.
A second way is with the status bar:
- Double-click on Graph2 from the Project Explorer window. Graph2 is now in front and becomes the active child window.
- Click the Layer 1 icon, to make layer 1 active.
- Look in the lower right of Origin's status bar and you'll see [WIND]WIND!Col(Speed)[1:12].
- Repeat for Layer 2 and you'll see [WIND]WIND!Col(Power)[1:12].
A third way is from the menu:
- Make Graph2 active.
- Right-click on the Layer 1 icon. At the bottom of the context menu, you see the data plot list. The one checked is the active data plot.
- Right-click on Layer 2 to view the list of data that is plotted in it.
- Note that you can also select the Data menu to view the data plot list.
A fourth way is with the Plot Setup dialog.
- With Graph2 still active, Right-click on the layer 1 icon to select Plot Setup.
- In the opened Plot Setup dialog, expand the Plot List to see also the data in Layer 2. You can see the advantage here is that you can see data in all layers at once.
In order to show all three panels in Plot Setup dialog, please expand Plot Type panel by clicking and expand Available Data panel by clicking again.
Please refer to Plotting using Plot Setup for more information.
- Uncheck the Show check box for the Speed data plot.
- Click OK. This data plot is only hidden which is why the legend still indicates its presence in the layer.
The last way is from the Plot Details dialog.
- Double-click on any of the line+symbol plots in Graph2.
- Expand the tree so you see contents of both Layer1 and Layer2.
- Uncheck the Speed and Power data plots.
- Click OK.