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.3 Basic 2D Plotting

Summary

Origin's 2D plots are highly customizable. You can easily modify plot attributes, arrange layers, and select different datasets for each layer. This tutorial will teach you the basic plotting skills.

Minimum Origin Version Required: Origin 2015 SR0

What you will learn

This tutorial will show you how to:

  • Perform simple row statistics
  • Create a graph and save as a template
  • Plot into your template
  • Use the Plot Setup dialog


Steps

Simple row statistics

  1. Start with an empty worksheet, select File: Import: Single ASCII... to open the Import Single ASCII dialog, browse to the \Samples\Curve Fitting subfolder of the Origin program folder, and import the file Dose Response - No Inhibitor.dat.

  2. Highlight columns 2 through 4 and select Statistics: Descriptive Statistics: Statistics on Rows. Make sure to check the Mean and Standard Deviation check boxes on the Quantities tab to output these results.

    Tutorial 2D Plot 001New.png

  3. After you click the OK button, two new columns, Mean(Y) and SD(yErr) are added to the source worksheet. Here, yErr means that this is an error column and the data in this column can be used to plot error bars.

    Note: To simplify plotting, each column in an Origin worksheet has a plotting designation. To change a column's plotting designation, select the column and click on the Column menu. Alternatively, right-click on the column and choose Set As from the shortcut menu.

Create a graph and save as a template

  1. Highlight the Mean(Y) and SD(yEr-) columns and select Plot: Line+Symbol: Line+Symbol to create the plot:

    Tutorial 2D Plot 002.png

  2. Change the X scale to Log. To do this, double-click on the X axis to bring up the Axis dialog. On the Scale tab, change the axis Type to Log10:

    Tutorial 2D Plot 003.png

    Click the OK button to close the dialog.

  3. Select Graph: Rescale to Show All from the menu, which will rescale the X and Y axes of the graph. :

    Tutorial 2D Plot 004.png

  4. To edit the curve, double-click on any plot symbol to bring up the Plot Details dialog. Alternatively, right-click inside the graph and choose Plot Details from the shortcut menu. On the Line tab of right panel, select B-Spline as the connecting line type to get a smoother curve.

    Tutorial 2D Plot 005.png

    Click the OK button to close the dialog.

  5. When all modifications have been made and the graph looks the way you want it, you can use this graph to create a template, to be used in the future with similar data. Select File: Save Template as to open the Save Template dialog. In the Category drop-down list, select UserDefined; and then type a proper Template Name. In this example, we use MyTemplate. Click OK to save the template.

    Tutorial 2D Plot 006.png

Plot into graph template with the Plot Setup dialog

  1. Click the New Workbook Tutorial 2D Plot 007.png button and import the file \Samples\Curve Fitting\Dose Response - Inhibitor.dat as above. Perform Statistics on Rows, calculating the Mean and SD of this worksheet as you did above, following the same steps.

  2. Select Plot: User Templates: MyTemplate
  3. In the Plot Setup dialog, you can choose which columns are to be plotted. (There are three panels in Plot Setup dialog, click the Tutorial 2D Plot button01.png or Tutorial 2D Plot button02.png button to expand/collapse them.) To finish creating the plot from your template, please follow the steps a - e outlined on the picture below.

    Tutorial 2D Plot 009.png

    And then you will have:

    Tutorial 2D Plot 020.png


 

© OriginLab Corporation. All rights reserved.