您的位置: 首页 > 文章 > python matplotlib 的用法 python matplotlib 的用法 分类: 文章 • 2024-05-22 17:24:22 1. 画基本的图 import matplotlib.pyplot as pltimport numpy as npx = np.linspace(-1,1,50)y = 2*x+1plt.plot(x,y)plt.show() 2. figure 的用法