Python Matplotlib 绘制红色曲线并标记数据点
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5] y = [2, 4, 6, 8, 10]
plt.plot(x, y, 'r-') plt.plot(x, y, 'r*') plt.show()
原文地址: https://www.cveoy.top/t/topic/pjs0 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5] y = [2, 4, 6, 8, 10]
plt.plot(x, y, 'r-') plt.plot(x, y, 'r*') plt.show()
原文地址: https://www.cveoy.top/t/topic/pjs0 著作权归作者所有。请勿转载和采集!