OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 

6.1.12 Plotting using Plot Setup

Summary

In this tutorial, we will show you how to implement various plotting tasks including creating graphs, modifying the plot type, adding plots to or removing plots from the graph, grouping or ungrouping plots, and editing the plot range, using Plot Setup dialog.

This tutorial will show you how to:

  • Create line plot with Plot Setup
  • Group or ungroup plots with Plot Setup
  • Add or remove plots with Plot Setup
  • Change plot type and display range with Plot Setup
  • Change plot order with Plot Setup
  • Create multi-Panel Plots with Plot Setup

Create Line Plot with Plot Setup

  1. Start with a an empty worksheet and from the menu, select File: Import: Single ASCII or click the Import Single ASCII button Transparency Import Button.png to open the file browser.
  2. Choose the file <Origin Installation Directory>\Samples\Curve Fitting\Step01.dat, check the Show Options Dialog check box, and click the Open button to bring up the impASC dialog.
  3. Click the OK button to import the data into the worksheet.
  4. Return to your workbook and ensure that no data is highlighted.
  5. Select Plot: Line: Line, the Plot Setup Dialog will pop up. In the middle panel, you can see the Long Name is displayed by default. Select Column B (Sensor A x) as X, and Column C (Sensor A y) as Y. Click Add to add the plot into the bottom panel, which will automatically be added to Layer 1. Repeat this operation for Sensor B, and Sensor C.
    Plot Setup 1.png
  6. In order to show all three panels in Plot Setup dialog, please expand Plot Type panel by clicking Button Expand Preview Up.png and expand Available Data panel by clicking Button Expand Preview Up.png again.

Group/Ungroup plots with Plot Setup

Next we want to group this three plots together. Use the same graph from the previous example.

  1. Press CTRL then select all three plots at the bottom panel, right click and select Group. Then these plots would be under the Group node.
    Plot Setup 2.png
  2. Click OK to close the dialog. The graph would appear as follow:
    Plot Setup 3.png

  3. Note:
    1. The plot grouping operation enable you to customize the appearance of these grouped data plots in Group Tab of Plot Details dialog.
    2. To ungroup data plots, you can go back to the bottom panel of Plot Setup dialog then click the Group node, right click select Ungroup.

Add or Remove Plots with Plot Setup

Next we are going to remove the data plot of Sensor C then add the data plot of Sensor D into the graph. Use the same graph from the previous example.

  1. Activate the graph, then click Graph: Plot Setup to go back to the Plot Setup dialog. At the bottom panel, highlight the plot of Sensor C, then right click to select Remove. Click Apply then OK to close the dialog. The Sensor C plot would be removed from the graph.
    Plot Setup 4.png
  2. To add the data plot of Sensor D, select the Group node in lower panel and go to the upper panel by clicking on the double up-sided blue arrow icon on top right corner, select Column H (Sensor D x) as X, and Column I (Sensor D y) as Y. Click Add. Click Apply then OK to close the dialog.
  3. Next we are going to customize the style of the grouped plot. Double click the plot to enter Plot Details dialog. At the plot level, select Line tab, set Width as 3.Click Apply then OK to close the dialog. The graph would appear as follow:
    Plot Setup 55.png

Change Plot Display Range with Plot Setup

  1. Next we are going to modify the data plot display range.
  2. Activate the graph, then click Graph: Plot Setup to go back to the Plot Setup dialog. Select the data plot of Sensor A in the bottom panel. Click the cell of Range column, a rectangle button would appear at the end of the cell.
  3. Click this button. The Range dialog would pop up. Uncheck the Auto of From and To. Then Customize it as From 1 To 15 and click OK to close the dialog.
    Plot Setup re.png
  4. To apply this display range for other plots, right click the the data plot of Sensor A again and select Apply Range To Group.
  5. To rescale the plot, click the checkbox of Rescale on the Layer 1 row of the Range Column.Click Apply then OK to close the dialog.
    Plot Setup ee.png

Change Plot Order with Plot Setup

Next we want to change the plot order of these three plots. Use the same graph from the previous example.

  1. Activate the graph, then click Graph: Plot Setup back to the Plot Setup dialog.
  2. At the bottom panel, keep pressing the mouse on the plot of Sensor B then drag the plot above Sensor A.
    Plot Setup or.png
  3. Click Apply then OK to close the dialog.The graph would appear as follow. You can see that the data plot of Sensor A is on top of that of Sensor B.
    Plot Setup ree.png

Change Plot Type with Plot Setup

Next we want to change these three line plots into scatter plots and modify the data plot range. Use the same graph from the previous example.

  1. Activate the graph, right click at the Layer index icon Button Layer Icon.png on the graph upper left corner, then select Plot Setup to go back to the Plot Setup dialog.
  2. Select the data plot of Sensor B in the bottom panel, then select Scatter in the Plot Type panel. Click Replace to replace the original line plot.Other plots in the same group will automatically replaced by scatter plot. Click OK to close the dialog.
    Plot Setup 6.png

Create Multi-Panel Plot with Plot Setup

Multi-Panel plot with several plots in each layer can be created conveniently using Plot Setup dialog.

  1. Create a new project, start with a an empty worksheet and from the menu, select File: Import: Multiple ASCII or click the Import Multiple ASCII button Button Import Multiple ASCII.png to open the file browser.
  2. Press CTRL and choose the file Step01.dat, Step02.dat , Step03.dat, and Step04.dat from the folder <Origin Installation Directory>\Samples\Curve Fitting\.... Click Add File(s). Check the Show Options Dialog check box, and click OK to bring up the impASC dialog.
  3. Under Import Options, set Import Mode as Start New Books. Accept other default settings and click OK to close the dialog.Four workbooks Step01.dat, Step02.dat , Step03.dat, and Step04.dat will be created.
  4. Do not activate any workbook and click Plot: Multi-Panel: 4 Panel to go to the Plot Setup dialog.
  5. Click the double up-sided blue arrow icon on top right corner to open top panel, then select Worksheets in Project in Available Data drop-down list. All four workbooks would appear in the upper panel.
  6. Use Ctrl key to select all four workbooks in the upper panel, then select Column B (Sensor A x) as X, and Column C (Sensor A y) as Y in the middle panel.
  7. Select Plot Type as Line and select Layer1 in ther bottom panel. Click Add. All data plots of Sensor A in these four workbooks would be added to Layer1.
    Plot Setup mul.png
  8. Repeat the previous step to add Sensor B, Sensor C, and Sensor D to Layer2, Layer3, and Layer4 respectively.Click OK to close the dialog. The graph would appear as follow:
    Plot Setup final.png
 

© OriginLab Corporation. All rights reserved.