打开Origin软件,选择上方工具栏中的【导入Excel】,将预先准备好的数据Excel导入进Book中。Open Origin software, select [Import Excel] in the upper toolbar, and import the pre-prepared data Excel into Book.
2. 创建画布,设置坐标轴 Create a canvas and set the axes
将Excel导入到Book中后,我们选择手动绘图。点击【文件】-【新建】-【图】,会生成一个原始的画布,我们再修改图中的坐标轴名称和单位即可。After importing Excel into Book, we choose to draw manually. Click [File] - [New] - [Figure], will generate an original canvas, we then modify the name of the axes in the figure and units can be.
3. 绘制图线 Plot line
将Book中数据导入到画布中。点击【图】-【图表绘制】,在【可用数据】中选择【当前项目中的工作表】,将日期X轴和气温Y轴分别添加进图层1中。 Import the data from Book into the canvas. Click [Diagram] - [Charting], select [Worksheet in Current Project] in [Available Data], and add the date X-axis and temperature Y-axis into Layer 1 respectively.
4. 设置线的格式 Setting the line format
双击每条线可以对各个线进行单独设置线条颜色,线形,样式和宽度等。 Double-click on each line to set the line color, line shape, style, width, etc. for each line individually.
5. 设置标题 Setting the title
双击坐标轴,我们在菜单栏中找到【标题】,选中【上标题】-【显示】,输入“四个城市一周气温图”,点击应用即可。 Double-click the axis, we find the [title] in the menu bar, select [on the title] - [display], enter "four cities a week temperature map", click to apply.
6. 添加设置标签 Add settings tab
双击每个线条,选择【标签】-【启用】,即可生成每个节点的数据标签,上下拖动标签可以更改标签的位置。Double-click each line and select [Label] - [Enable] to generate data labels for each node, and drag the labels up and down to change the position of the labels.
7. 保存图例和工程 Saving Legends and Projects
点击【文件】-【项目保存】,选好文件夹,【项目旧版格式】。图片保存选择【导出】,保存图片为【标签图像文件】即可。Click [File] - [Project Save], select the folder, [Project Old Format]. Picture save choose [Export], save the picture as [label image file] can be.
知识补充 Knowledge supplement
给坐标轴添加箭头 Adding arrows to axes
在初始坐标轴中是没有箭头指向的,所以我们要人为地添加坐标轴箭头以便美化图像。我们双击坐标轴,在【轴线和刻度线】的子项找到【箭头】,将【箭头位于末端】勾选上即可。There is no arrow pointing in the initial axes, so we have to artificially add axes arrows in order to beautify the image. We double-click on the axes, find [Arrowheads] in the [Axes and Scales] subsection, and check [Arrowheads at the end].