matplotlib.pyplot.
ginput
(*args, **kwargs)[source]¶
Blocking call to interact with a figure.
Wait until the user clicks n times on the figure, and return the coordinates of each click in a list.
There are three possible interactions:
The actions are assigned to mouse buttons via the arguments mouse_add, mouse_pop and mouse_stop. Mouse buttons are defined by the numbers:
Number of mouse clicks to accumulate. If negative, accumulate clicks until the input is terminated manually.
Number of seconds to wait before timing out. If zero or negative will never timeout.
If True, show a red cross at the location of each click.
Mouse button used to add points.
Mouse button used to remove the most recently added point.
Mouse button used to stop input.
A list of the clicked (x, y) coordinates.
Notes
The keyboard can also be used to select points in case your mouse does not have one or more of the buttons. The delete and backspace keys act like right clicking (i.e., remove last point), the enter key terminates input and any other key (not already used by the window manager) selects a point.
matplotlib.pyplot.ginput
¶
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4