import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-1,1,100)
y1 =  2*x + 1
y2 = x**2
plt.figure()#创建第一个图
plt.plot(x,y1)
plt.figure()#创建第二个图
plt.plot(x,y2)
plt.show()

matplotlib绘图2 figure图像

matplotlib绘图2 figure图像

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-07-12
  • 2022-02-08
  • 2021-09-16
相关资源
相似解决方案