python中matplotlib繪圖總結

python常用繪圖示例 plot繪製曲線圖 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 1000) y = np.sin(x) z = np.cos(x**2) plt.figure(figsize=(8,4)) plt.plot(x,y,label="$sin(x)$",color="r
相關文章
相關標籤/搜索