摘要:OriginLab公司研发的Origin是一款专门用于科学制图和数据处理的软件,在科研和工程领域的数据可视化与统计研究中被广泛采用。折线图是该软件中最常见的二维图形形式之一,它通过依次连接数据点,能够直观展现数值随变量变化的规律,因此常见于实验结果呈现和时间序
分享兴趣,传播快乐,
增长见闻,留下美好。
亲爱的您,这里是LearningYard学苑!
今天小编为大家带来
“慧学(31):Origin折线图绘图学习”
欢迎您的访问!
Share interest, spread happiness,
increase knowledge, and leave beautiful.
Dear, this is the LearingYard Academy!
Today, the editor brings the
"Hui Xue (31): Origin line chart drawing learning"
Welcome to visit!
一、思维导图(Mind mapping)
二、折线图简介(Introduction to line chart)
OriginLab公司研发的Origin是一款专门用于科学制图和数据处理的软件,在科研和工程领域的数据可视化与统计研究中被广泛采用。折线图是该软件中最常见的二维图形形式之一,它通过依次连接数据点,能够直观展现数值随变量变化的规律,因此常见于实验结果呈现和时间序列研究。用户不仅可以在同一坐标系下绘制多条曲线,还能借助颜色、线型和符号来加以区分,并进一步在图表中添加图例、参考线或文字说明,从而突出对比关系和重要特征。与普通办公软件相比,Origin在图形美化和批量化定制方面更具优势,使得折线图既能满足学术论文的专业要求,也适用于工程汇报与科研展示的高标准需求。
Origin, developed by OriginLab, is a software specifically designed for scientific mapping and data processing. It is widely used in data visualization and statistical research in scientific research and engineering. The line chart is one of the most common two-dimensional graphic forms in this software. By connecting data Points in sequence, it can intuitively show the law of change of numerical values with variables. Therefore, it is commonly used in the presentation of experimental results and time series research. Users can not only draw multiple curves in the same coordinate system, but also use color, line type and symbols to distinguish them, and further add legends, reference lines or text descriptions to the chart to highlight comparative relationships and important features. Compared with ordinary office software, Origin has more advantages in graphic beautification and batch customization, so that line charts can not only meet the professional requirements of academic papers, but also meet the high standards of engineering reports and scientific research presentations.
三、绘制折线图的步骤(Steps to draw a line chart)
1、准备与导入数据(Prepare and import data)
启动Origin后,首先需要新建一个工作表,系统会默认生成A、B、C、D等列。一般情况下,A列被设定为横坐标的X数据,而B、C、D等列则作为纵坐标Y数据使用,例如Y1、Y2、Y3可以分别表示不同实验条件下的结果。数据既可以手动录入,也能够从Excel表格或文本文件中导入。需要特别注意的是,A列必须被指定为X列(通常Origin会自动完成),否则其余列将无法正确绘制为线条。
After launching Origin, you first need to create a new worksheet. The system will generate columns A, B, C, and D by default. Generally, column A is set as the X data for the horizontal axis, while columns B, C, and D are used as the Y data for the vertical axis. For example, Y1, Y2, and Y3 can represent the results under different experimental conditions. Data can be entered manually or imported from Excel spreadsheets or text files. It is important to note that column A must be designated as the X column (usually Origin will do this automatically), otherwise the remaining columns will not be drawn correctly as lines.
2、绘制基础折线图(Draw a basic line chart)
当数据准备完成后,就可以开始绘图操作了。首先,用鼠标框选A列以及对应的B至D列,然后在菜单栏中找到“绘图”选项,选择“基础二维图”下的“点线图”,也可以直接点击下方工具栏的点线图图标。此时,Origin会在新建的图形窗口中自动生成一张折线图,其中每一列Y数据都会对应一条独立的线条。这样得到的图虽然样式较为简单,但已经包含了基本的线条和系统默认的符号。
Once the data preparation is completed, you can start drawing. First, use the mouse to select column A and the corresponding columns B to D, then find the "Drawing" option in the menu bar, select "Point and Line Graph" under "Basic 2D Graph", or directly click the point and line graph icon in the toolbar below. At this point, Origin will automatically generate a line graph in the newly created graphics window, in which each column of Y data will correspond to an independent line. Although the resulting graph is relatively simple in style, it already contains basic lines and system default symbols.
3、设置线条颜色与样式(Set line color and style)
接下来需要对线条进行美化处理,以便清晰地区分各组数据。双击图中的任意曲线后,会弹出“绘图细节”中的属性设置窗口。在这里,可以调整线条的颜色、样式以及粗细。通过合理搭配颜色和线型,不仅能让图表更加直观,还能避免多条线叠加后难以辨认的问题。
Next, you need to beautify the lines to clearly distinguish between the different groups of data. Double-clicking any curve in the graph will bring up the "Drawing Details" property settings window. Here, you can adjust the color, style, and thickness of the line. By properly matching colors and line types, you can not only make the chart more intuitive, but also avoid the problem of multiple lines being difficult to identify when they are superimposed.
4、更换标记符号(Change marker symbol)
除了调整线条样式之外,使用不同的标记符号也能有效区分各条线。在“绘图细节”的“绘图属性”选项卡中,可以为每条线选择不同的符号形状,例如圆点、三角形、方块或菱形,并进一步设置符号的大小和填充颜色。这样,即使在黑白打印的情况下,这些线条也能被清楚地区别开来。
In addition to adjusting the line style, using different marker symbols can also effectively distinguish the lines. In the "Drawing Properties" tab of "Drawing Details", you can select different symbol shapes for each line, such as dots, triangles, squares, or diamonds, and further set the size and fill color of the symbol. In this way, even when printing in black and white, these lines can be clearly distinguished.
5、添加图例并调整内容(Add a legend and adjust the content)
在默认设置下,Origin绘图时会自动生成图例,通常以列名的形式显示,如Y1、Y2、Y3。如果原始数据中已有更具说明性的标签,可以通过右键单击图例,在弹出的设置窗口中修改其内容。此外,还可以将图例拖拽到合适的位置,并调整字体大小、加粗或其他格式,从而使图表整体更加美观,同时避免遮挡线条。
By default, Origin automatically generates a legend when plotting, typically displaying column names such as Y1, Y2, and Y3. If your original data already has more descriptive labels, you can modify their contents by right-clicking the legend and opening the Settings window. You can also drag the legend to a suitable location and adjust the font size, boldness, or other formatting to enhance the overall appearance of the chart while avoiding obstructing lines.
6、添加文字标识和注释(Add text labels and annotations)
在绘图过程中,通常需要在图表中加入标题或为各条线添加说明。可以通过右键菜单选择“添加/修改图层标题”,在图表上方插入标题内容。若想给每条线单独标注,可以使用“添加文本”功能来实现。之后如需修改,右键点击文本或标题即可打开编辑窗口进行调整。
When drawing, you often need to add a title to your chart or add descriptions for each line. You can insert a title above the chart by selecting "Add/Modify Layer Title" from the right-click menu. If you want to label each line individually, use the "Add Text" function. To modify the text later, right-click the text or title to open the editing window for adjustment.
7、最终图像(Final image)
今天的分享就到这里了,
如果您对文章有独特的想法,
欢迎给我们留言,
让我们相约明天。
祝您今天过得开心快乐!
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!
翻译:Google翻译
参考资料:维基百科、CSDN社区、Chatgpt、OriginLab官网
本文由LearningYard学苑整理发出,如有侵权请在后台留言!
文案|chen
排版|chen
审核|hzy
来源:LearningYard学苑