分享兴趣,传播快乐,
增长见闻,留下美好。
亲爱的您,这里是LearningYard学苑!
今天小编为大家带来文章
“越览(29)——Origin学习笔记(2):折线图。”
欢迎您的访问。
Share interest, spread happiness,
increase knowledge,and leave beautiful.
Dear, this is LearningYard Academy!
Today, the editor brings you the article
“Yue Lan (29)——Origin Study Notes (2):
line graph”
Welcome to visit!
一、思维导图(Mind Maps)
二、折线图简介(Line chart introduction)
折线图是一种常用的图形表示方法,用于展示随时间或其他连续变量变化的数据趋势。这种图表通过一系列连接的数据点来描绘数据的走向,使得观察者能够直观地看到数据随时间或其他变量的变化规律。
A line chart is a commonly used graphical representation to show trends in data over time or other continuous variables. This chart plots the direction of data through a series of connected data points, allowing observers to visually see how the data changes over time or other variables.
三、折线图的绘制方法(Drawing method of line chart)
1.准备数据(Prepare data)
在 Origin 中新建一个工作表。将准备好的数据输入到不同的列中,数据按照五列的形式输入:第一列为月份(X值),第二列至第五列为四个不同省份每月平均最高气温的数据(Y值)。
Create a new worksheet in Origin. Enter the prepared data into different columns, and enter the data in the form of five columns: the first column is the month (X value), and the second to fifth columns are the data for the average monthly maximum temperature in four different provinces (Y value).
2.创建折线图(Create a line chart)
选中含有数据的工作表区域,接着在菜单栏中点击“绘图”,然后选择“基础2D图”选项下的“折线图”。或者直接点击左下角中的图标进行创建。
Select the worksheet area containing the data, then click "Plot" in the menu bar, and then select "Line Chart" under the "Basic 2D Chart" option. Or directly click the icon in the lower left corner to create.
将月份X值与气温Y值分别设置完成。
Set the month X value and the temperature Y value separately.
此时,一个简单的折线图将出现在一个新的图形窗口中。
At this point, a simple line chart will appear in a new graphics window.
3.调整折线图样式(Adjust line chart style)
(1)设置轴标签(Set axis label)
双击坐标轴,打开窗口,在刻度选项卡下设置轴线刻度。为了让图片显示的更清楚,选择将每个月份都展示出来。
Double-click the axis, open the window, and set the axis scale under the scale tab. To make the picture display more clearly, select Show each month.
选择“轴线和刻度线”,对上下左右轴都进行设置。将轴线粗细选择3,再设置主刻度和次刻度的样式。
Select "Axis and Scale Line" to set both the upper, lower, left and right axes. Select 3 for the axis thickness, and then set the styles of the main scale and the secondary scale.
最后对轴线上的字体进行设置,设置字体的样式、大小和粗细,使整体看上去与轴线更协调。
Finally, set the font on the axis, setting the style, size and thickness of the font to make the overall appearance more harmonious with the axis.
(2)更改线条样式(Change line style)
双击线条,打开绘图属性窗口。设置每根线条的颜色、样式和粗细。
Double-click a line to open the Drawing Properties window. Set the color, style, and weight of each line.
(3)设置图例(Set legend)
将鼠标放置在图例上,点击鼠标右键,选择属性窗口打开。可以修改图例中的文本,设置图例的边框、填充等样式,可以依据自己的喜好进行修改。
Place the mouse on the legend, click the right mouse button, and select the properties window to open. You can modify the text in the legend, set the border, fill and other styles of the legend, and modify it according to your own preferences.
(4)添加标题(Add title)
在空白处右键,选择“添加/修改图层标题”,手动输入图标的标题即可。
Right-click in the blank space, select "Add/Modify Layer Title", and manually enter the title of the icon.
4.保存和导出图表(Save and export charts)
完成对折线图的所有自定义后,保存图表即可。最后效果如图所示:
After completing all customizations to the line chart, save the chart. The final effect is as shown in the picture:
学会了的话,不妨现在就动手试试吧。
If you've learned it, you might as well try it now.
今天的分享就到这里了。
如果您对文章有独特的想法,
欢迎给我们留言,让我们相约明天。
祝您今天过得开心快乐!
That's all for today's sharing.
If you have a unique idea about the article,
please leave us a message,
and let us meet tomorrow.
I wish you a nice day!
文案|yyz
排版|yyz
审核|hzy
翻译:ChatGPT
参考资料:哔哩哔哩、CSDN博客
本文由LearningYard学苑整理发出,如有侵权请在后台留言!