matplotlib 曲線圖 和 折線圖 plt.plot()

繪製曲線: import time import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 1000) y = np.sin(x) plt.figure(figsize=(6,4)) plt.plot(x,y,color="red",linewidth=1 ) plt.xlabel("x") #xlabel
相關文章
相關標籤/搜索