From e7ea84c468d487a52067fb48121758e0f5cd614c Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Mon, 15 May 2023 18:15:50 +0800 Subject: [PATCH] vault backup: 2023-05-15 18:15:50 --- 04. Programming/Python/matplotlib.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04. Programming/Python/matplotlib.md b/04. Programming/Python/matplotlib.md index a09ca41..49ab988 100644 --- a/04. Programming/Python/matplotlib.md +++ b/04. Programming/Python/matplotlib.md @@ -26,7 +26,7 @@ plt.gca().axes.get_xaxis().set_visible(False) ```python figure, axis = plt.subplots(2, 2) ``` -用 `plt.subplots()` 來指定要畫幾張圖,第一個參數是x軸的數量,第二個參數是y軸的數量 +用 `plt.subplots()` 來指定要畫幾張圖,第一個參數是要有幾個 row,第二個參數是要有幾個 column。 `axis` 會是一個 array,可以用類似座標的方式來控制你要的圖,例如: ```python axis[0, 0].set_title("Sine Function")