首先,我们在Excel中填入我们生成好的数据,将其导入到Origin中。First, we fill in our generated data in Excel and import it into Origin.
2. 生成均值、标准差 Generate mean, standard deviation
其次,我们选中所有Y轴数据,点击菜单栏中的【统计】-【描述统计】-【行统计】-【打开对话框】,Origin会显示行统计的会话窗口,我们找到【输出量】,勾选中【均值】和【标准差】,即可自动生成两列数据。Second, we select all the Y-axis data, click on the menu bar in the [Statistics] - [Describe Statistics] - [Row Statistics] - [Open Dialog], Origin will display a row of statistics in the session window, we find the [Output Volume], check the box [Mean] and [Standard Deviation], you can automatically generate two columns of data.标准差用于反馈数据的变异程度,用以描述这里面数据相对均值的偏离情况。标准差越小,说明这五个数据与样本均值的差值小。The standard deviation is used to provide feedback on the degree of variability of the data, and is used to characterize how much the data here deviates from the mean. The smaller the standard deviation, the smaller the difference between the five data and the sample mean.
3. 生成图像 Generating images
然后,我们单独选中均值和标准差这两列,点击菜单栏中的【绘图】,在“条形图、饼图、面积图”中找到【带标签的柱状图】,即可生成比较原始的图像。Then, we individually select the mean and standard deviation of the two columns, click on the menu bar in the [Drawing], in the "bar graph, pie charts, area charts" to find the [bar chart with labels], you can generate a more original image.
4. 设置标题 Setting title
双击坐标轴,在【标题】中选择上轴,点击【显示】,自定义我们要输入的标题即可生成标题。Double-click the axes, select the upper axis in [Title], click [Show], and customize the title we want to enter to generate the title.
5. 美化图线 Landscaping lines
最后,我们需要美化图线。双击图线,在【图案】中找到更多颜色,选择颜色棒,可以搭配我们自己喜欢的颜色类型。在【颜色】中选择【按点】,可以选择从哪个颜色开始生成颜色棒。Finally, we need to beautify the graph line. Double click on the graph line, find more colors in [Pattern], and select the color bar to match our own favorite type of color. Select [Press Point] in [Color] to choose which color to start generating the color bar from.
6. 修改数字标签 Modify number labels
如上图所示,误差棒所显示的数字小数点后面3位,显得非常拥挤,我们需要在【标签】中选择Y,在数值显示格式中输入【*3*】,这里“*3*”表示只显示三位数字,点击应用。As shown in the figure above, the error bar displayed by the number of decimal places after 3, it seems very crowded, we need to select Y in the [Label], in the numerical display format enter [*3 *], where "*3 *" means that only three digits are displayed, click on Apply.
知识补充 Knowledge supplement
给各个数据中间添加连接线 Add connecting lines to each data center
还是如上图所示,我们双击任意一个柱状图的图线,点击【显示】,将【连接线】勾中,Origin会自动生成一个【线条】的菜单栏,我们可以在此栏中任意设置线条的形状和粗细。之后我们再按照自己的意愿对图像进行自定义,即可生成一幅完整的误差棒图。 Or as shown in the figure above, we double-click on any one of the bar graph line, click [Show], will be [Connected Lines] check, Origin will automatically generate a [Line] menu bar, we can set the shape of the line in this bar and thickness of any arbitrary settings. After that, we will customize the image according to their own wishes, you can generate a complete error bar graph.