分享興趣,傳播快樂,
增長見聞,留下美好。
親愛的您,這裡是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學苑整理發出,如有侵權請在背景留言!