python matplotlib 畫圖簡介

python的matplotlib包支持咱們畫圖,有點很是多,現學習以下。html 首先要導入包,在之後的示例中默認已經導入這兩個包python import matplotlib.pyplot as plt import numpy as np 而後畫一個最基本的圖 t = np.arange(0.0, 2.0, 0.01)#x軸上的點,0到2之間以0.01爲間隔 s = np.sin(2*np
相關文章
相關標籤/搜索