mirror of
https://github.com/Estom/notes.git
synced 2026-02-07 20:44:38 +08:00
504 B
504 B
Ginput 演示
这提供了交互功能的使用示例,例如ginput。
import matplotlib.pyplot as plt
import numpy as np
t = np.arange(10)
plt.plot(t, np.sin(t))
print("Please click")
x = plt.ginput(3)
print("clicked", x)
plt.show()