matplotlib.pyplot.waitforbuttonpress# matplotlib.pyplot.waitforbuttonpress(timeout=-1)[源代码][源代码]# 阻塞调用以与图形交互。 等待用户输入并在按下键时返回 True,在按下鼠标按钮时返回 False,如果在 timeout 秒内没有输入则返回 None。负值会禁用 timeout。 注释 备注 这是 Figure.waitforbuttonpress 的 pyplot 包装器。 使用 matplotlib.pyplot.waitforbuttonpress 的示例# 交互功能 Interactive functions