根据 x(列表)和 y(列表)组成点,然后连接成线

实例:

import matplotlib.pyplot as plt
c = [1, 2, 6, 8, 10]
g = [1, 2, 10, 9, 8]
plt.figure(0)  # 创建画布
plt.plot(c, g)  # 连接成线
plt.show()  # 展示画布

plt.plot() 函数

相关文章:

  • 2021-09-03
  • 2022-12-23
  • 2021-07-28
  • 2021-07-09
  • 2022-12-23
  • 2021-11-20
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2021-07-02
  • 2021-09-01
  • 2021-04-26
  • 2021-09-24
  • 2021-07-29
相关资源
相似解决方案