@@ -1827,9 +1827,9 @@ def subplots_adjust(self, *args, **kwargs):
1827
1827
def ginput (self , n = 1 , timeout = 30 , show_clicks = True , mouse_add = 1 ,
1828
1828
mouse_pop = 3 , mouse_stop = 2 ):
1829
1829
"""
1830
- Blocking call to interact with a figure. This will wait for *n*
1831
- clicks from the user and return a list of the coordinates of each
1832
- click .
1830
+ Blocking call to interact with a figure. Wait until the user clicks *n*
1831
+ times on the figure, and return the coordinates of each click in a
1832
+ list .
1833
1833
1834
1834
The buttons used for the various actions (adding points, removing
1835
1835
points, terminating the inputs) can be overriden via the
@@ -1839,22 +1839,20 @@ def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1,
1839
1839
1840
1840
Parameters
1841
1841
----------
1842
- n : int, optional
1842
+ n : int, optional, default: 1
1843
1843
Number of mouse clicks to accumulate. If negative, accumulate
1844
- clicks until the input is terminated manually. Default is 1.
1845
- timeout : scalar, optional
1844
+ clicks until the input is terminated manually.
1845
+ timeout : scalar, optional, default: 30
1846
1846
Number of seconds to wait before timing out. If zero or negative
1847
- will never timeout. Default is 30.
1848
- show_clicks : bool, optional
1849
- If True, show a red cross at the location of each click. Default is
1850
- False.
1851
- mouse_add : int, one of (1, 2, 3), optional
1852
- Mouse button used to add points. Default is 1 (left click)
1853
- mouse_pop : int, one of (1, 2, 3), optional
1854
- Mouse button used to remove the most recently added point. Default
1855
- is 3 (right click)
1856
- mouse_stop : int, one of (1, 2, 3), optional
1857
- Mouse button used to stop input. Default is 2 (middle click)
1847
+ will never timeout.
1848
+ show_clicks : bool, optional, default: False
1849
+ If True, show a red cross at the location of each click
1850
+ mouse_add : int, one of (1, 2, 3), optional, default: 1 (left click)
1851
+ Mouse button used to add points
1852
+ mouse_pop : int, one of (1, 2, 3), optional, default: 3 (right click)
1853
+ Mouse button used to remove the most recently added point
1854
+ mouse_stop : int, one of (1, 2, 3), optional, default: 2 (middle click)
1855
+ Mouse button used to stop input
1858
1856
1859
1857
Returns
1860
1858
-------
0 commit comments