You are reading an old version of the documentation (v3.0.2). For the latest version see
Version 3.0.2
Fork me on GitHub

Related Topics

Ginput DemoΒΆ

This provides examples of uses of interactive functions, such as 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)

Keywords: matplotlib code example, codex, python plot, pyplot Gallery generated by Sphinx-Gallery