# 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 Data: Import from File: Single ASCII or click the Import Single ASCII button 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.
5. Select Plot > Basic 2D : 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.
6.  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.

## 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.
2. Click OK to close the dialog. The graph would appear as follow:

3.  Note: The plot grouping operation enable you to customize the appearance of these grouped data plots in Group Tab of Plot Details dialog. 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.
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:

## 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.
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.

## 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.
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.

## 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 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.

## 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 Data: Import from File: Multiple ASCII or click the Import Multiple ASCII button 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/Axis: 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.
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: