Skip to content

Commit 94a7cd6

Browse files
committed
DOC: Remove redundant call signatures.
1 parent 5742552 commit 94a7cd6

File tree

8 files changed

+0
-219
lines changed

8 files changed

+0
-219
lines changed

lib/matplotlib/artist.py

-4
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,6 @@ def pickable(self):
424424

425425
def pick(self, mouseevent):
426426
"""
427-
call signature::
428-
429-
pick(mouseevent)
430-
431427
each child artist will fire a pick event if *mouseevent* is over
432428
the artist and the artist has picker set
433429
"""

lib/matplotlib/axes/_axes.py

-107
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,6 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
822822
"""
823823
Add a horizontal span (rectangle) across the axis.
824824
825-
Call signature::
826-
827-
axhspan(ymin, ymax, xmin=0, xmax=1, **kwargs)
828-
829825
*y* coords are in data units and *x* coords are in axes (relative
830826
0-1) units.
831827
@@ -877,10 +873,6 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
877873
"""
878874
Add a vertical span (rectangle) across the axes.
879875
880-
Call signature::
881-
882-
axvspan(xmin, xmax, ymin=0, ymax=1, **kwargs)
883-
884876
*x* coords are in data units and *y* coords are in axes (relative
885877
0-1) units.
886878
@@ -1099,12 +1091,6 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
10991091
"""
11001092
Plot identical parallel lines at specific positions.
11011093
1102-
Call signature::
1103-
1104-
eventplot(positions, orientation='horizontal', lineoffsets=0,
1105-
linelengths=1, linewidths=None, color =None,
1106-
linestyles='solid'
1107-
11081094
Plot parallel lines at the given positions. positions should be a 1D
11091095
or 2D array-like object, with each row corresponding to a row or column
11101096
of lines.
@@ -1435,11 +1421,6 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
14351421
"""
14361422
Plot with data with dates.
14371423
1438-
Call signature::
1439-
1440-
plot_date(x, y, fmt='bo', tz=None, xdate=True,
1441-
ydate=False, **kwargs)
1442-
14431424
Similar to the :func:`~matplotlib.pyplot.plot` command, except
14441425
the *x* or *y* (or both) data is considered to be dates, and the
14451426
axis is labeled accordingly.
@@ -1508,10 +1489,6 @@ def loglog(self, *args, **kwargs):
15081489
"""
15091490
Make a plot with log scaling on both the *x* and *y* axis.
15101491
1511-
Call signature::
1512-
1513-
loglog(*args, **kwargs)
1514-
15151492
:func:`~matplotlib.pyplot.loglog` supports all the keyword
15161493
arguments of :func:`~matplotlib.pyplot.plot` and
15171494
:meth:`matplotlib.axes.Axes.set_xscale` /
@@ -1570,10 +1547,6 @@ def semilogx(self, *args, **kwargs):
15701547
"""
15711548
Make a plot with log scaling on the *x* axis.
15721549
1573-
Call signature::
1574-
1575-
semilogx(*args, **kwargs)
1576-
15771550
:func:`semilogx` supports all the keyword arguments of
15781551
:func:`~matplotlib.pyplot.plot` and
15791552
:meth:`matplotlib.axes.Axes.set_xscale`.
@@ -1623,10 +1596,6 @@ def semilogy(self, *args, **kwargs):
16231596
"""
16241597
Make a plot with log scaling on the *y* axis.
16251598
1626-
call signature::
1627-
1628-
semilogy(*args, **kwargs)
1629-
16301599
:func:`semilogy` supports all the keyword arguments of
16311600
:func:`~matplotlib.pylab.plot` and
16321601
:meth:`matplotlib.axes.Axes.set_yscale`.
@@ -1827,10 +1796,6 @@ def step(self, x, y, *args, **kwargs):
18271796
"""
18281797
Make a step plot.
18291798
1830-
Call signature::
1831-
1832-
step(x, y, *args, **kwargs)
1833-
18341799
Additional keyword args to :func:`step` are the same as those
18351800
for :func:`~matplotlib.pyplot.plot`.
18361801
@@ -2301,10 +2266,6 @@ def broken_barh(self, xranges, yrange, **kwargs):
23012266
"""
23022267
Plot horizontal bars.
23032268
2304-
Call signature::
2305-
2306-
broken_barh(self, xranges, yrange, **kwargs)
2307-
23082269
A collection of horizontal bars spanning *yrange* with a sequence of
23092270
*xranges*.
23102271
@@ -2454,15 +2415,6 @@ def pie(self, x, explode=None, labels=None, colors=None,
24542415
r"""
24552416
Plot a pie chart.
24562417
2457-
Call signature::
2458-
2459-
pie(x, explode=None, labels=None,
2460-
colors=('b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'),
2461-
autopct=None, pctdistance=0.6, shadow=False,
2462-
labeldistance=1.1, startangle=None, radius=None,
2463-
counterclock=True, wedgeprops=None, textprops=None,
2464-
center = (0, 0), frame = False )
2465-
24662418
Make a pie chart of array *x*. The fractional area of each
24672419
wedge is given by x/sum(x). If sum(x) <= 1, then the values
24682420
of x give the fractional area directly and the array will not
@@ -2676,14 +2628,6 @@ def errorbar(self, x, y, yerr=None, xerr=None,
26762628
"""
26772629
Plot an errorbar graph.
26782630
2679-
Call signature::
2680-
2681-
errorbar(x, y, yerr=None, xerr=None,
2682-
fmt='', ecolor=None, elinewidth=None, capsize=None,
2683-
barsabove=False, lolims=False, uplims=False,
2684-
xlolims=False, xuplims=False, errorevery=1,
2685-
capthick=None)
2686-
26872631
Plot *x* versus *y* with error deltas in *yerr* and *xerr*.
26882632
Vertical errorbars are plotted if *yerr* is not *None*.
26892633
Horizontal errorbars are plotted if *xerr* is not *None*.
@@ -3055,16 +2999,6 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
30552999
"""
30563000
Make a box and whisker plot.
30573001
3058-
Call signature::
3059-
3060-
boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
3061-
positions=None, widths=None, patch_artist=False,
3062-
bootstrap=None, usermedians=None, conf_intervals=None,
3063-
meanline=False, showmeans=False, showcaps=True,
3064-
showbox=True, showfliers=True, boxprops=None, labels=None,
3065-
flierprops=None, medianprops=None, meanprops=None,
3066-
capprops=None, whiskerprops=None, manage_xticks=True):
3067-
30683002
Make a box and whisker plot for each column of *x* or each
30693003
vector in sequence *x*. The box extends from the lower to
30703004
upper quartile values of the data, with a line at the median.
@@ -3338,15 +3272,6 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
33383272
"""
33393273
Drawing function for box and whisker plots.
33403274
3341-
Call signature::
3342-
3343-
bxp(self, bxpstats, positions=None, widths=None, vert=True,
3344-
patch_artist=False, shownotches=False, showmeans=False,
3345-
showcaps=True, showbox=True, showfliers=True,
3346-
boxprops=None, whiskerprops=None, flierprops=None,
3347-
medianprops=None, capprops=None, meanprops=None,
3348-
meanline=False, manage_xticks=True):
3349-
33503275
Make a box and whisker plot for each column of *x* or each
33513276
vector in sequence *x*. The box extends from the lower to
33523277
upper quartile values of the data, with a line at the median.
@@ -3950,15 +3875,6 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
39503875
"""
39513876
Make a hexagonal binning plot.
39523877
3953-
Call signature::
3954-
3955-
hexbin(x, y, C = None, gridsize = 100, bins = None,
3956-
xscale = 'linear', yscale = 'linear',
3957-
cmap=None, norm=None, vmin=None, vmax=None,
3958-
alpha=None, linewidths=None, edgecolors='none'
3959-
reduce_C_function = np.mean, mincnt=None, marginals=True
3960-
**kwargs)
3961-
39623878
Make a hexagonal binning plot of *x* versus *y*, where *x*,
39633879
*y* are 1-D sequences of the same length, *N*. If *C* is *None*
39643880
(the default), this is a histogram of the number of occurences
@@ -4402,10 +4318,6 @@ def arrow(self, x, y, dx, dy, **kwargs):
44024318
"""
44034319
Add an arrow to the axes.
44044320
4405-
Call signature::
4406-
4407-
arrow(x, y, dx, dy, **kwargs)
4408-
44094321
Draws arrow on specified axis from (*x*, *y*) to (*x* + *dx*,
44104322
*y* + *dy*). Uses FancyArrow patch to construct the arrow.
44114323
@@ -4507,10 +4419,6 @@ def fill(self, *args, **kwargs):
45074419
"""
45084420
Plot filled polygons.
45094421
4510-
Call signature::
4511-
4512-
fill(*args, **kwargs)
4513-
45144422
*args* is a variable length argument, allowing for multiple
45154423
*x*, *y* pairs with an optional color format string; see
45164424
:func:`~matplotlib.pyplot.plot` for details on the argument
@@ -4716,10 +4624,6 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
47164624
"""
47174625
Make filled polygons between two horizontal curves.
47184626
4719-
Call signature::
4720-
4721-
fill_betweenx(y, x1, x2=0, where=None, **kwargs)
4722-
47234627
Create a :class:`~matplotlib.collections.PolyCollection`
47244628
filling the regions between *x1* and *x2* where
47254629
``where==True``
@@ -7258,12 +7162,6 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
72587162
"""
72597163
Make a violin plot.
72607164
7261-
Call signature::
7262-
7263-
violinplot(dataset, positions=None, vert=True, widths=0.5,
7264-
showmeans=False, showextrema=True, showmedians=False,
7265-
points=100, bw_method=None):
7266-
72677165
Make a violin plot for each column of *dataset* or each vector in
72687166
sequence *dataset*. Each filled area extends to represent the
72697167
entire data range, with optional lines at the mean, the median,
@@ -7361,11 +7259,6 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
73617259
showmeans=False, showextrema=True, showmedians=False):
73627260
"""Drawing function for violin plots.
73637261
7364-
Call signature::
7365-
7366-
violin(vpstats, positions=None, vert=True, widths=0.5,
7367-
showmeans=False, showextrema=True, showmedians=False):
7368-
73697262
Draw a violin plot for each column of `vpstats`. Each filled area
73707263
extends to represent the entire data range, with optional lines at the
73717264
mean, the median, the minimum, and the maximum.

lib/matplotlib/axes/_base.py

-28
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,6 @@ def ishold(self):
11581158

11591159
def hold(self, b=None):
11601160
"""
1161-
Call signature::
1162-
1163-
hold(b=None)
1164-
11651161
Set the hold state. If *hold* is *None* (default), toggle the
11661162
*hold* state. Else set the *hold* state to boolean value *b*.
11671163
@@ -2458,10 +2454,6 @@ def grid(self, b=None, which='major', axis='both', **kwargs):
24582454
"""
24592455
Turn the axes grids on or off.
24602456
2461-
Call signature::
2462-
2463-
grid(self, b=None, which='major', axis='both', **kwargs)
2464-
24652457
Set the axes grids on or off; *b* is a boolean. (For MATLAB
24662458
compatibility, *b* may also be a string, 'on' or 'off'.)
24672459
@@ -2883,10 +2875,6 @@ def get_xscale(self):
28832875
@docstring.dedent_interpd
28842876
def set_xscale(self, value, **kwargs):
28852877
"""
2886-
Call signature::
2887-
2888-
set_xscale(value)
2889-
28902878
Set the scaling of the x-axis: %(scale)s
28912879
28922880
ACCEPTS: [%(scale)s]
@@ -2965,10 +2953,6 @@ def get_xticklabels(self, minor=False, which=None):
29652953
@docstring.dedent_interpd
29662954
def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
29672955
"""
2968-
Call signature::
2969-
2970-
set_xticklabels(labels, fontdict=None, minor=False, **kwargs)
2971-
29722956
Set the xtick labels with list of strings *labels*. Return a
29732957
list of axis text instances.
29742958
@@ -3227,10 +3211,6 @@ def get_yticklabels(self, minor=False, which=None):
32273211
@docstring.dedent_interpd
32283212
def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs):
32293213
"""
3230-
Call signature::
3231-
3232-
set_yticklabels(labels, fontdict=None, minor=False, **kwargs)
3233-
32343214
Set the y tick labels with list of strings *labels*. Return a list of
32353215
:class:`~matplotlib.text.Text` instances.
32363216
@@ -3772,10 +3752,6 @@ def _make_twin_axes(self, *kl, **kwargs):
37723752

37733753
def twinx(self):
37743754
"""
3775-
Call signature::
3776-
3777-
ax = twinx()
3778-
37793755
create a twin of Axes for generating a plot with a sharex
37803756
x-axis but independent y axis. The y-axis of self will have
37813757
ticks on left and the returned axes will have ticks on the
@@ -3796,10 +3772,6 @@ def twinx(self):
37963772

37973773
def twiny(self):
37983774
"""
3799-
Call signature::
3800-
3801-
ax = twiny()
3802-
38033775
create a twin of Axes for generating a plot with a shared
38043776
y-axis but independent x axis. The x-axis of self will have
38053777
ticks on bottom and the returned axes will have ticks on the

lib/matplotlib/backend_bases.py

-7
Original file line numberDiff line numberDiff line change
@@ -2424,10 +2424,6 @@ def start_event_loop_default(self, timeout=0):
24242424
functions for each of the GUI backends can be written. As
24252425
such, it throws a deprecated warning.
24262426
2427-
Call signature::
2428-
2429-
start_event_loop_default(self,timeout=0)
2430-
24312427
This call blocks until a callback function triggers
24322428
stop_event_loop() or *timeout* is reached. If *timeout* is
24332429
<=0, never timeout.
@@ -2452,9 +2448,6 @@ def stop_event_loop_default(self):
24522448
loop so that interactive functions, such as ginput and
24532449
waitforbuttonpress, can wait for events.
24542450
2455-
Call signature::
2456-
2457-
stop_event_loop_default(self)
24582451
"""
24592452
self._looping = False
24602453

lib/matplotlib/backends/backend_wx.py

-7
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,6 @@ def start_event_loop(self, timeout=0):
765765
confused with the main GUI event loop, which is always running
766766
and has nothing to do with this.
767767
768-
Call signature::
769-
770-
start_event_loop(self,timeout=0)
771-
772768
This call blocks until a callback function triggers
773769
stop_event_loop() or *timeout* is reached. If *timeout* is
774770
<=0, never timeout.
@@ -794,9 +790,6 @@ def stop_event_loop(self, event=None):
794790
loop so that interactive functions, such as ginput and
795791
waitforbuttonpress, can wait for events.
796792
797-
Call signature::
798-
799-
stop_event_loop_default(self)
800793
"""
801794
if hasattr(self, '_event_loop'):
802795
if self._event_loop.IsRunning():

lib/matplotlib/figure.py

-9
Original file line numberDiff line numberDiff line change
@@ -1629,11 +1629,6 @@ def subplots_adjust(self, *args, **kwargs):
16291629
def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1,
16301630
mouse_pop=3, mouse_stop=2):
16311631
"""
1632-
Call signature::
1633-
1634-
ginput(self, n=1, timeout=30, show_clicks=True,
1635-
mouse_add=1, mouse_pop=3, mouse_stop=2)
1636-
16371632
Blocking call to interact with the figure.
16381633
16391634
This will wait for *n* clicks from the user and return a list of the
@@ -1668,10 +1663,6 @@ def ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=1,
16681663

16691664
def waitforbuttonpress(self, timeout=-1):
16701665
"""
1671-
Call signature::
1672-
1673-
waitforbuttonpress(self, timeout=-1)
1674-
16751666
Blocking call to interact with the figure.
16761667
16771668
This will return True is a key was pressed, False if a mouse

0 commit comments

Comments
 (0)