2.1.6.2.Matplotlib
1. 使用library
import matplotlib.pyplot as plt%matplotlib inline2. 畫圖的基本操作
import numpy as np
x = np.linspace(0, 5, 11)
y = x ** 2
plt.plot(x, y, 'r-')
plt.xlabel('X label')
plt.ylabel('Y label')
plt.title('Title')
#print
plt.show()
3. 繪製多張圖

4.以Object Orient的概念進行繪圖操作



5.以Object Orient的概念進行多張圖的繪圖操作




儲存圖檔
Last updated

