摘要:
我們可以使用 pyplot 中的 grid() 方法來設(shè)置圖表中的網(wǎng)格線。 grid() 方法語法格式如下: matplotlib.pyplot.grid(b=None, which='major', axis='both', ) 參數(shù)說明: b:可選,默認為 None,可以設(shè)置布爾值,true 為 閱讀全文
posted @ 2022-04-16 17:40
來瓶冰可樂
閱讀(251)
評論(0)
推薦(0)
摘要:
我們可以使用 xlabel() 和 ylabel() 方法來設(shè)置 x 軸和 y 軸的標(biāo)簽。 實例 import numpy as np import matplotlib.pyplot as plt x = np.array([1, 2, 3, 4]) y = np.array([1, 4, 9, 閱讀全文
posted @ 2022-04-16 17:39
來瓶冰可樂
閱讀(146)
評論(0)
推薦(0)

浙公網(wǎng)安備 33010602011771號