【莫煩】Python Matplotlib

基本用法 import matplotlib.pyplot as plt import numpy as np # 使用np.linspace定義x:範圍是(-1,1);個數是50. 仿真一維數據組(x ,y)表示曲線1. x = np.linspace(-1, 1, 50) y = 2*x + 1 #使用plt.figure定義一個圖像窗口. 使用plt.plot畫(x ,y)曲線. 使用pl
相關文章
相關標籤/搜索