【python画图】画一条水平直线

import matplotlib.pyplot as plt
plt.axhline(y=0.5, color='r', linestyle='-')
plt.show()

 https://stackoverflow.com/questions/33382619/plot-a-horizontal-line-using-matplotlib

猜你喜欢

转载自blog.csdn.net/u_7890/article/details/92801768