Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1966f16

Browse files
committed
Kill pyplot docstrings that get overwritten by @docstring.copy.
The docstrings of the Figure methods are more complete anyways.
1 parent 9faf231 commit 1966f16

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

lib/matplotlib/figure.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,7 +2297,6 @@ def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1,
22972297
terminates input and any other key (not already used by the window
22982298
manager) selects a point.
22992299
"""
2300-
23012300
blocking_mouse_input = BlockingMouseInput(self,
23022301
mouse_add=mouse_add,
23032302
mouse_pop=mouse_pop,
@@ -2315,7 +2314,6 @@ def waitforbuttonpress(self, timeout=-1):
23152314
23162315
If *timeout* is negative, does not timeout.
23172316
"""
2318-
23192317
blocking_input = BlockingKeyMouseInput(self)
23202318
return blocking_input(timeout=timeout)
23212319

lib/matplotlib/pyplot.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -702,28 +702,11 @@ def savefig(*args, **kwargs):
702702

703703
@docstring.copy(Figure.ginput)
704704
def ginput(*args, **kwargs):
705-
"""
706-
Blocking call to interact with the figure.
707-
708-
This will wait for *n* clicks from the user and return a list of the
709-
coordinates of each click.
710-
711-
If *timeout* is negative, does not timeout.
712-
"""
713705
return gcf().ginput(*args, **kwargs)
714706

715707

716708
@docstring.copy(Figure.waitforbuttonpress)
717709
def waitforbuttonpress(*args, **kwargs):
718-
"""
719-
Blocking call to interact with the figure.
720-
721-
This will wait for *n* key or mouse clicks from the user and
722-
return a list containing True's for keyboard clicks and False's
723-
for mouse clicks.
724-
725-
If *timeout* is negative, does not timeout.
726-
"""
727710
return gcf().waitforbuttonpress(*args, **kwargs)
728711

729712

0 commit comments

Comments
 (0)