折線圖plot

前言 折現圖主要表現某事物隨時間的變化而變化,固然並不定非要是時間。python 代碼 # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import numpy as np x = np.linspace(-10,10,5) y = x**2 plt.plot(x,y) plt.show() 展現 後記 畫一個折線圖大概就是這樣了
相關文章
相關標籤/搜索