600 likes | 928 Views
数据分析绘图工具 —— Origin7.0. 主讲人:宁宝英 Email : ningby@llas.ac.cn 国科图兰州分馆信息服务部 2008.11.21. Origin 绘制的图形 (2D 图 ). Origin 绘制的图形 ( 统计图 ). Origin 绘制的图形 ( 等高线 ). Origin 绘制的图形 (3D 图). 数据分析绘图工具 Origin 7.0. §1 概述 §2 数据文件的建立 §3 数据的编辑 §4 绘制图形 §5 图形的编辑和格式化 §6 Tools 工具栏的使用
E N D
数据分析绘图工具——Origin7.0 主讲人:宁宝英 Email:ningby@llas.ac.cn 国科图兰州分馆信息服务部 2008.11.21
数据分析绘图工具 Origin 7.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的主要功能 • 由数据作图 • 图形的拟合
图形的拟合 1选择数据 2生成散点图 3在图层标记右击选择曲线 4 Tool-拟合方式 5 结果生成
1.2 Origin7.0的工作界面(Workspace) 图形窗口 工作表窗口 子窗口 工程管理器
Origin7.0的工作界面 1. 标题栏 2. 菜单栏 • 3. 工具栏 工具栏的开启方法 • 4. 子窗口 子窗口种类 • 5. 工程管理器(Project Explorer): The Project Explorer is a tool to help you organize your Origin projects 6. 状态栏
工具栏的开启方法: • select View: Toolbarsfrom the Origin menu bar. When a workbook(Excel)is active, selectWindow:Origin Toolbars.
子窗口的种类主要有: • 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的启动 • 桌面快捷图标 • “开始” → “所有程序” → “Origin7.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-Export Page,保存格式为*.WMF格式 • 可保存的文件类型及文件扩展名
文件类型及文件扩展名(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 intovertical columns and horizontal rows. 工作表由垂直的列和水平的行组成 • At the intersection of each column and row is a cell. 列与行的交叉处称为单元格 • Each cell 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. 选定拟插入新单元格下方的单元格 • ②Thenselect 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. 或直接使用键盘快捷按钮Delete: 删除单元格或单元格区域中的内容,格子保留 • To delete a range of cells from the worksheet, select Edit: Delete. 内容和单元格同时删除 • Attention:Delete (1) The Edit: Deletedeletes a selected values and cells (2) The keyboard: Delete deletes the worksheet values only.
3.4 列的插入、删除和重排 先选定后操作 • Adding Columns:增加列 • 在数据表外的空白处击右键. Right-click inside the worksheet window but to the right of the worksheet grid. Select Add New Column from the shortcut menu. 一次只能增加一列 • Select Column: Add New Columns.一次可增加多列 • Inserting Columns:插入列,插入的列在选定的列之前。 • Right-click → select Insert from the shortcut menu. • Select Edit: Insert • Deleting Columns: 删除列 • Right-click → select Delete. • Select Edit: Delete • Note: To clear the column values but remain the columns, selectEdit: Clear • Moving Columns: 移动列 Select Column:Move to First. Column:Move to Last.
3.5 行的插入和删除 先选定后操作 • Inserting Rows: 插入行 • right-click and select Insert • select Edit: Insert • Deleting Rows: 删除行 • right-click and select Delete • Edit:Delete
3.6 删除工作表(Deleting a Worksheet from a Project ) To delete a worksheet from the project, perform one of the following operations: • Click theClose Window buttonin the upper-right corner of the worksheet.选择“Delete”点击工作表右上方的关闭窗口按扭 • 使用工程管理器: • Right-clickon the worksheet window icon inProject Explorerand selectDelete Windowfrom the shortcut menu.在工程管理器中右击工作表图标,在快捷菜单中选Delete Window • Click on the worksheet window iconin Project Explorer and then pressDelete.在工程管理器中点击工作表图标,按Delete 键
3.7 数据表的格式化 方法:双击工作表的列的标签 打开Worksheet Column Format 作用: 1.改变列的名称(Column Name) 2. 改变列的标识(Plot Designation) 3. 改变数据的类型(Display) 4. 改变数的格式(Format) 5. 改变数的显示格式(Numeric Display) 6. 改变列宽(Column Width) 7. 为列标签添加说明( Column Label)
5. 改变数的显示格式 (Numeric Display) 4. 改变数的格式 (Format) 十进制格式 科学记数格式 工程记数格式 有千位分隔符的十进制格式 默认的十进制显示数据 设置小数点的位置 设置有效数字的位数
§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. 依据数据表绘图 • 选定列或数据范围 • select Plot: Graph • 自动画出图形 • 自定义列坐标 • 不需选定数据范围 • 直接选 Plot: Graph • 在弹出的对话框中设定
图层 (Layer)的基本概念 • 什么是图层 • 由一组坐标轴组成的对象 • 图层的选择 • 点击图层标记可选择具体的图层 • 选定后所有的操作将对当前图层进行 • 使用 View – Show – Layer Icons 隐藏 • 为什么要多图层 • 在同一图形窗口绘制多个图形 • 用不同单位显示同一组数据
图层特点:选中图层序号,点击右键,选择Layer Properties
多图层绘图操作步骤 • 1、首先是设定坐标轴
3、在图层编号上点击右键,选择add/Remove Plot, 选择用于做另一条曲线的数据列,点击ok
4、排列和定制图层: 方法: • 在Edit菜单中选定Add & Arrange Layers…对话框 • 确定行数和列数,点击OK,然后确定图形在页面中的位置
§5 图形的编辑和格式化 • 1. 坐标轴的格式化 • 2. 坐标说明文本的格式化 • 3. 数据点和线的格式化 • 4. 添加文本框
坐标轴的格式化:通过以下方法之一打开坐标格式化对话框1. 双击坐标轴 2. 右击坐标轴→快捷菜单中选相应命令 3. 选Format菜单中的相应命令
坐标轴格式化对话框 由红箭头所指处,可以直观了解该选项的内容
坐标说明文本的格式化:打开文本控制对话框 右击坐标说明文本→快捷菜单中选相应命令
坐标说明文本控制对话框 用于输入希腊字母