@@ -2181,11 +2181,20 @@ def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1,
2181
2181
Wait until the user clicks *n* times on the figure, and return the
2182
2182
coordinates of each click in a list.
2183
2183
2184
- The buttons used for the various actions (adding points, removing
2185
- points, terminating the inputs) can be overridden via the arguments
2186
- *mouse_add*, *mouse_pop* and *mouse_stop*, that set the associated
2187
- mouse button: 1 for left, 2 for middle, 3 for right. Using a different
2188
- value (e.g. None) disables the corresponding mouse action.
2184
+ There are three possible interactions:
2185
+
2186
+ - Add a point.
2187
+ - Remove the most recently added point.
2188
+ - Stop the interaction and return the points added so far.
2189
+
2190
+ The actions are assigned to mouse buttons via the arguments
2191
+ *mouse_add*, *mouse_pop* and *mouse_stop*. Mouse buttons are defined
2192
+ by the numbers:
2193
+
2194
+ - 1: left mouse button
2195
+ - 2: middle mouse button
2196
+ - 3: right mouse button
2197
+ - None: no mouse button
2189
2198
2190
2199
Parameters
2191
2200
----------
@@ -2197,11 +2206,11 @@ def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1,
2197
2206
will never timeout.
2198
2207
show_clicks : bool, optional, default: False
2199
2208
If True, show a red cross at the location of each click.
2200
- mouse_add : int, one of ( 1, 2, 3) , optional, default: 1 (left click)
2209
+ mouse_add : { 1, 2, 3, None} , optional, default: 1 (left click)
2201
2210
Mouse button used to add points.
2202
- mouse_pop : int, one of ( 1, 2, 3) , optional, default: 3 (right click)
2211
+ mouse_pop : { 1, 2, 3, None} , optional, default: 3 (right click)
2203
2212
Mouse button used to remove the most recently added point.
2204
- mouse_stop : int, one of ( 1, 2, 3) , optional, default: 2 (middle click)
2213
+ mouse_stop : { 1, 2, 3, None} , optional, default: 2 (middle click)
2205
2214
Mouse button used to stop input.
2206
2215
2207
2216
Returns
0 commit comments