##x,y 可以是list也可以是numpy格式,如x=[1,2,3,4,5,6]

fig=plt.figure(figsize=(15,10))
ax = fig.gca()
for i in range(len(ans)):
    circle2 = plt.Circle((ans_x[i],ans_y[i] ), 3, color='blue')
    ax.add_artist(circle2)
plt.plot(y,x,color="red",linewidth=2)
plt.show()

python matplot plt画折现/曲线图,并在上面标记

相关文章:

  • 2022-12-23
  • 2021-07-23
  • 2021-08-24
  • 2021-08-04
  • 2022-01-05
  • 2021-07-29
  • 2021-05-11
  • 2022-12-23
猜你喜欢
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-05-28
  • 2021-08-06
  • 2022-12-23
相关资源
相似解决方案