[Python] 纯文本查看 复制代码
import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,18, 19, 20, 21, 22, 23, 24, 25, 26, 227, 28, 29, 30, 31, 32, 33.34])
ypoints = np.array([0, 100, 50, 60, 40, 100, 40, 20, 23, 33, 55, 60,78, 45, 89, 99, 78, 52, 65, 26, 62, 45, 12, 45, 85, 65, 99, 98, 55])
plt.plot(xpoints, ypoints)
plt.show()