You are on page 1of 52

第三章 数据分析绘图

工具
—— Origin6.0
数据分析绘图工具 Origin
6.0
 §1 概述
 §2 数据文件的建立
 §3 数据的
 §4 绘制图形
 §5 图形的编辑和格式化
 §6 Tools 工具栏的使用
 §7 数据分析 ——曲 合
 §8 Origin 图形文件的输出

主讲:王雅
§1 概述
1.1 Origin 的主要功能
1.2 工作界面
1.3 基本操作方法
1.4 Origin 的 和退出
1.5 Origin 文件的保存

主讲:王雅
1.1 Origin 的主要功能

由数据或函数作图

图形的拟合

主讲:王雅
由数据或函数作

2.0 0.18
d
D
1.8 0.16

1.6 0.14

D
0.12
1.4
0.10
1.2
0.08
1.0
0.06
10 12 14 16 18 20
C

主讲:王雅
图形的拟合

主讲:王雅
1.2 Origin6.0 的工作界面
( Workspace )

工作表窗 图形窗
口 口

子窗

工程管理器

主讲:王雅
Origin6.0 的工作界面
1. 标题栏
2. 菜单栏
3. 工具栏
工具栏的开启方法
4. 子窗口 子窗口
5. 工程管理器( Project Explorer )

The Project Explorer is a tool to help
you organize your Origin projects
6. 状态栏 主讲:王雅
工具 的 方法 :
 select View:
View Toolbars from the Origin menu
bar.

When a workbook ( Excel ) is active, select


Window:Origin Toolbars.

主讲:王雅
Toolbars dialog box

返回
主讲:王雅
子窗口的种类主要有

 The Worksheet Window
工作表窗 口
 The Excel Workbook Window
Excel 工作表窗 口
 The Graph Window
图形窗口
 The Function Graph Window
函数图形窗口
 The Layout Page Window
版面编排窗口
 Attention: Each child window has its own menu structure,
which is displayed when the window is active.
返回
主讲:王雅
1.3 基本操作方法
 1. 使用菜单中的相应命令
 2. 使用工具按钮
 3. 右击鼠标,在弹出的快捷菜单中
选相应命令
 4. 选定对象后双击,打开对话框

主讲:王雅
1.4 Origin 的启动和退

1. Origin 的启动
 桌面快捷图标
 “ 开始 ” → “程序 ” → “ Microcal
Origin6.0 ”
→ 快捷图标
2. Origin 的退出
方法有两种:
单击右上角的关闭按扭;

单击 Origin 窗口菜单的 “ File” → “Exit”

注意:要区分 Origin 的退出和子窗口的退



主讲:王雅
1.5 Origin 文件的保存
 Save a project
保存工程
 Save a child window separately as a file

单独将子窗口作为一个文件保存
 Save a template as a file

保存为 模板文件
 可保存的文件类型及文件扩展名

主讲:王雅
文件类型及文件扩展名( file
extension )
 Project —— OPJ
It cannot save as template Graph
 Worksheet —— OGW
Template extension is OTW
 Excel Workbook —— XLS
It cannot save as template
Layout Page —— OTP
It cannot save as file
Matrix —— OGM
Template extension is OTM
Function Graph —— OGG
Template extension is OTP
Notes —— TXT
It cannot save as template
主讲:王雅
§2 数 据 文 件 的 建 立
Origin provides several ways to add data to the worksheet
1. Entering data using the keyboard. 键盘输入
2. Importing a file. 导入文件
3. Pasting data from another application using the Clipboard.
4. Pasting data from another (or the same) Origin worksheet
using the Clipboard. ( 3 ) ( 4 )是粘贴数据
5. Using Excel Workbook Window. 打开或创建 Excel 工作

6. Using a function to set column values. 用函数设置列的
值 主讲:王雅
§3 数 据 的 编辑
3.1 工作表简介
3.2 工作表的选定操作
3.3 数据的 修改
3.4 列的插入、删除及重排
3.5 行的插入和删除
3.6 删除工作表
3.7 格式化数据表( Worksheet )

主讲:王雅
3.1 工作表 介
 The worksheet window is organized into
vertical columns and horizontal rows.
工作表由垂直的列和水平的行组 成
 At the intersection of each column and row is a cell.
列与行的交叉处称为单元格
 Eachcell can contain a single numeric , text,
numeric and text, date, or time value.
每个单元格内可包含数、文本、日期、时间等
 Origin projects can contain multiple worksheets.
一个 Origin projects 中可以包含多个工作表

主讲:王雅
3.2 工作表的 定操作
 1. 选定若干单元格( Selecting Cells )
 Click-and-drag to select the cells.
 2. 选定若干行( Selecting Rows )
 Select the row heading , drag the mouse
 Or Select the row heading , Click + SHIFT key

 3. 选相邻的列( Selecting Adjacent Columns )


 Select the first column heading, Click-and-drag
 Or Select the column heading , Click + SHIFT key
 4. 选不相邻的列( Selecting Nonadjacent
Columns )
 Select the column heading, + CTRL key

主讲:王雅
3.3 数据的编辑修改
1. 数据的修改
 To change a value, select the cell and type the correct
value. ( Origin automatically overwrites the value in the
cell )
替换单元格中的数据,点击该单元格,输入新的值

 To edit a cell value, press F2 or click at the desired position


修改单元格中的数据,点击该单元格后,在拟修改
的位置单击鼠标

 Delete: Delete one value to the right of the cursor,


or delete all highlighted values.
主讲:王雅
2. 在列中插入数据 ( Inserting Data within a
Column )

 ① To insert a cell in a column, select the cell


that is directly below where you want to
insert the new cell.
选定拟 插入新单元格下方的 单元格
 ② Then select Edit:Insert
or right-click →select Insert from the shortcut menu.
执行编辑菜单中的插入命令
 ③ The new cell inserts above the selected cell.
新单元格将插在所选定单元格的上方

主讲:王雅
3. 删除数据( Deleting
Data )
 To clear the entire contents of a worksheet,
select Edit: Clear Worksheet. 删除整个工作表中的内容
 To delete the contents of a range of cells from the worksheet,
select Edit: Clear. 删除单元格或单元格区域中的内容,格子保

 To delete a range of cells from the worksheet,


select Edit: Delete. 内容和单元格同时删除
 Attention: Delete

(1) The Edit: Delete deletes a selected values and cells

(2) The keyboard: Delete deletes the worksheet values only.


主讲:王雅
3.4 列的插入、删除和重
排 先选定后操作
 Adding Columns :增加列
Perform one of the following operations:
Select Column:Add New Columns.
 Click the Add New Columns button on the Standard toolbar.
Right-click inside the worksheet window but to the right of the worksheet
grid. Select Add New Column from the shortcut menu.
 Inserting Columns :插入列
 Select Edit:Insert
Right-click → select Insert from the shortcut menu..
 Deleting Columns : 删除列
 Select Edit:Delete
Right-click → select Delete.
Note: To clear the column values but remain the columns, select
Edit:Clear.
 Moving Columns : 移动列
Select Column:Move to First. Column:Move to Last.
主讲:王雅
3.5 行的插入和删除 先选定后操作

 Inserting Rows : 插入行


 select Edit:Insert
or right-click and select Insert
 Deleting Rows : 删除行
 Edit:Delete

or right-click and select Delete.

主讲:王雅
3.6 删除工作表 ( Deleting a Worksheet from a
Project )
To delete a worksheet from the project, perform one of the
following operations:
 Click the Close Window button
in the upper-right corner of the worksheet.
点击工作表右上方的关闭窗口按扭
 Right-click on the worksheet window icon in Project Explorer
and select Delete Window from the shortcut menu.
在工程管理器中右击工作表图标,在快捷菜单中选 Delete
Window
 Click on the worksheet window icon in Project Explorer and
then press Delete.
在工程管理器中点击工作表图标,按 Delete 键

主讲:王雅
3.7 数据表的格式

方法:双击工作表的列标签
打开 Worksheet Column Format
作用:
1. 改变列的名称( Column Name )
2. 改变列的标识( Plot Designation )
3. 改变数据的类型( Display )
4. 改变数的格式( Format)
5. 改变数的显示格式( Numeric
Display )
6. 改变列宽( Column Width )
主讲:王雅
4. 改 变 数的格式 5. 改 变 数的 显 示格式
( Format ) ( Numeric
Display )

十进制格式 默认的十进制显示数据
科学记数格式
工程记数格式 设置小数点的位置
有千位分隔符的十进制格式 设置有效数字的位数

主讲:王雅
§4 绘制图形

4.1 图形窗口中的基本术

4.2 绘图的方法

主讲:王雅
4.1 图形窗口中的基本术

 Page: Each graph window contains a single editable
page. The page serves as a backdrop 页
 Layer: A movable, sizeable unit 层
 Frame:The frame is a rectangular box 框架
 Graph: A graph includes at least three elements: 图
 a set of X, Y, Z coordinate axes,
 one or more data plots,
 associated text and graphic labels.
 Data Plot: The data plot is the visual display of one
or more datasets in a graph window. 数据点

主讲:王雅
4.2 绘图的方法

 1. 数据表窗口激活 时绘图 的方法

 2. 图形窗口激活时绘图的方法

 3. 在同一张图上绘制多条线

 4. 绘制双横纵坐标图

主讲:王雅
1. 数据表窗口激活 时绘图 的
方法
 选定列或数据范围

 select Plot:Graph

 自动画出图形

 自定义列坐标
 不需选定数据范围
 直接选 Plot:Graph
 在弹出的对话框中设定

主讲:王雅
2. 图形窗口激活时绘图的方

 Adding data using the Layer n dialog box.
用层对话框 在图形窗口中添加数据 右击层标识
 This method respects the worksheet column plotting designations.
 Adding data using the Select Columns for Plotting dialog box.
用绘图对话框 通过选择数据列在图形窗口中添加数据
右击层标识
 This method allows you to disregard worksheet column plotting
designations.
 Adding selected data from the previously active worksheet.
将已经激活的数据表中所选定的数据添加到图形中
 Dragging data from the worksheet to the graph.
从工作表中拖数据到图形中
 Creating data plots using the Draw Data tool.
用绘制数据工具在图形窗口中建立新的数据点(点击 Draw Data
tool
后在图形界面需要绘制点的位置双击) 主讲:王雅
层标识

打开 “ Add/Remove Plot…” 对话框

主讲:王雅
层标识

打开 “ Plot Associations…” 对话

主讲:王雅
3. 在同一张图上绘制多条线

 方法 1 :在数据表中同时选定多列数据,
然后点击相应的图形工具

 方法 2 :先选定图形,打开绘图对话框
Select Columns Plotting 对话

进行 X 、 Y 等数据的设定。

 方法 3 :在已有的图上添加曲线 主讲:王雅
4. 绘制双横纵坐标图

 方法 1 :在数据表中同 时选 定 绘图 所需数据,
然后点击双横纵坐标图形工
具。

 方法 2 :在 单 坐 标图 上通 过加层( Layer )
的方法添加横坐 标 和(或)
纵坐标。
主讲:王雅
在 单 坐 标图 上加 层 的方法: 选择 Edit: New
Layer

主讲:王雅
5. 在同一页面上绘制多张图
方法:
在 Edit 菜单中选定 Add & Arrange Layers… 对话框
确定行数和列数,然后确定图形在页面中的位置

主讲:王雅
§5 图形的编辑和格式化
 1. 坐标轴的格式化

 2. 坐标说明文本的格式化

 3. 数据点和 线 的格式化

 4. 添加文本框

主讲:王雅
坐标的格式化:通过以下方法之一打开坐标格式化对话

1. 双击坐标轴
2. 右击坐标轴→快捷菜单中选相应命令

3. 选 Format 菜单中的相应命令

主讲:王雅
坐标格式化对话框

由红箭头所指处,可以直观了解该选项的
内容

主讲:王雅
坐标说明文本的格式化:
用下述方法之一打开文本控制对话框
1. 双击坐标说明文本
2. 右击坐标说明文本→快捷菜单中选相应命令

3. 选 Format 菜单中的相应命令

主讲:王雅
坐标说明文本控制对话框

用于输入希腊字

主讲:王雅
数据点和 线 的格式化:
用下述方法之一打开绘图细节对话框
1. 双击点或线
2. 右击点或线→快捷菜单中选相应命令

3. 选 Format 菜单中的相应命令

主讲:王雅
分度
绘图细节对话框 线 点 线

绘图类

主讲:王雅
§6 Tools 工具栏的使用
6.1 Tools 工具栏

6.2 Tools 工具栏 的打开


点击菜单 View→
Toolbars

6.3 Tools 工具的功能

主讲:王雅
6.3 Tools 工具的功能
 Arrow Tool  Circle Tool
(箭 工具) (画圆工具)
 Line Tool  Screen Reader
(线工具 ) (屏幕读数)
 Curved Arrow Tool  Data Reader
( 型箭 工具) (显示数据)
 Text Tool  Data Selector
(文本工具 ) (数据选择)
 Box Tool  Draw Data
(画框工具 ) (画数据点)

主讲:王雅
§7 数据分析——曲线拟合
 在图形窗口下进行拟合
的方法:
选菜单 Analysis
y=y0+A1 e -x / t1

y=y0+A1 e -x / t1 + A2 e -x / t 2

y=y0+A1 e -x / t1 + A2 e -x / t 2 + A3 e -x / t 3
线性拟合
y=A+Bx
多项式拟合 y=A+B1x+B2x2+
··· 指数衰减拟合
指数增长拟合 y=y0+A
也称eBoltzman
x/t 拟合
高斯拟合
洛沦兹拟合
多峰拟合
非线性曲线拟合
主讲:王雅
线性拟合结果中各参数的含义

 A: Intercept value and its standard error. 截距值及它的标准误



 B: Slope value and its standard error. 斜率值及它的标准误

 R: Correlation coefficient. 相关系数
 p: value - Probability (that R is zero). R=0 的概率
 N: Number of data points. 数据点个数
 主讲:王雅
§8 Origin 图形文件的输出
 设置复制后页面的比率
方法:选 Tools 菜单中的 Options ,打开对话框

 设置图形尺寸
方法:选 Format 菜单中的 Page ,打开对话框

 复制图形
方法:选 Edit 菜单中的 Copy Page

 在其它 用程序中粘贴

主讲:王雅
选项对话框 ( Options… )

主讲:王雅
页面对话框( Page… )

尺寸

END
主讲:王雅

You might also like