4.1.1 Global Vertical Cursor
The Vertical Cursor gadget can be used to read X and Y coordinate values for data points in stack/multi-panel plots or contained in multiple graphs simultaneously.
Minimum Origin Version Required: Origin 2021
What You Will Learn
This tutorial will show you how to:
- Use the vertical cursor gadget to read XY coordinates for multiple graphs and output the results.
- Link/Unlink graphs when using the vertical cursor gadget.
- Move or relocate the cursor line among the linked graph windows.
- Add cursors in linked layers of the multi-panel graph which has multiple panels side-by-side
Using Vertical Cursor on a Stacking Graph
- New a project with an empty workbook. select Data > Import From File: Multiple ASCII... to open ASCII box, browse to <Origin Folder>/Samples/Curve Fitting and add the filesStep01.dat, Step02.dat and Step03.dat. Click OK button to open the ASCII:impASC dialog.
- In the dialog, select Start New Books for Import Mode, Column Designation = (XY) and From = 2 for Partial Columns as below. All these three files selected will be imported into one workbook.
- Activate the workbook with long name Step01.dat and highlight the whole worksheet. Select Plot > Multi-Panel/Axis: Stack from the menu item to open the Plotstack dialog. Under the Plot Assignment branch, enter 3 for Number of Plots in Each Layer, accept other settings as default and click OK to create a stacked graph.
- Similarly create two other stacked graphs for the other two workbooks. So now we have Graph1, Graph2, and Graph3 for workbooks Step01, Step02 and Step03 respectively.
- Activate Graph1 and choose Gadgets:Vertical Cursor to open the Vertical Cursor dialog. Right-click on the column header to check Book to add one more column "Book" in the data points table.
- Click the Link/Unlink Graphs button in control panel and open the Graph Browser, you can choose whether to link or unlink a graph to the current active graph.
- Select Graph2 and Graph3 in the left panel and click the button to add the two graphs as linked graphs to Graph1. Click OK.
- Note:You can also unlink graphs in this dialog by using the button to remove a graph from the right panel.
On the upper right-hand corner of each linked graph, a icon appears to indicate that it belongs to a group of linked graphs.
- Make sure Graph1 is active and the Vertical Cursor dialog is open, the asterisk before the graph name marks the current active plot on which the cursor is on. Enter 25 as the X value, uncheck the box before Snap Cursor to Nearest X and click the Move Cursor to X button to read the data points in each plot when X=25.
- Click the Add Tag and Label button to add tags at X=25 for all linked graphs.
- Click the Output Report button , then click the Go to Report Worksheet button to generate and open the results worksheet. The XY coordinates of all plots in linked graphs are listed in the report sheet. Each time you click the Output Report button , a new row of data will be output to the result sheet.
- Activate Graph2, click on the icon and select Move Cursor Line here, the cursor line will be moved to Graph2.
- In the Vertical Cursor dialog, double click any row of Graph3 to activate its graph window. Select the previously added tag, press the Delete key to delete the tag, click on the icon and select Go to Cursor Line Window to go back to Graph2 where the cursor is currently on. You can see that the tags in linked graphs are deleted.
Using Vertical Cursor on a multi-panel graph with side-by-side layers
- New a workbook, select Help: Open Folder: Sample Folder... to open the "Samples" folder. In this folder, open the Graphing subfolder and find the file Waterfall.dat. Drag-and-drop this file into the empty worksheet to import it.
- Right-click on the first row to select Set As Lone Name. Highlight col(B)~col(E) to select Plot > Multi-Panel/Axis : 4 Panel to plot the graph with 4 panels, 3 rows and 2 columns .
- Click the first panel and select Gadgets: Vertical Cursor. The cursor will be added on the first column of panels, and only the data points in first and third panel will show up in the list.
- We are going to read the point X=1113.31 in all layers. Click the Add Linked Cursor for Each Layer button to add a cursor in all layers which are linked together(Once you clicked this button, it will turn to be its paired button which can be used to remove the cursors in linked layers and go back to the initial status). And, enter 1113.31 in the X= box and click Move Cursor to X button to move all cursors to this X value.
- Click Add Tag and Label button to tag this position in all layers. Click on the cursor in Layer1, drag-and-drop it to the other peaks to read the data points in all layers.
- You can click Output Report button at any time to output the interested data points to the result sheet row by row.