Skip to content

Commit 258ad31

Browse files
authored
Merge pull request #11592 from anntzer/spacesindocstrings
Remove some extra spaces in docstrings/comments.
2 parents 5dc51e0 + 3186b63 commit 258ad31

27 files changed

+59
-64
lines changed

examples/images_contours_and_fields/tricontour_smooth_delaunay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def experiment_res(x, y):
6161

6262
min_circle_ratio = .01 # Minimum circle ratio - border triangles with circle
6363
# ratio below this will be masked if they touch a
64-
# border. Suggested value 0.01 ; Use -1 to keep
64+
# border. Suggested value 0.01; use -1 to keep
6565
# all triangles.
6666

6767
# Random points

examples/misc/svg_filter_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
# filter definition for a gaussian blur
6363
filter_def = """
64-
<defs xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
64+
<defs xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
6565
<filter id='dropshadow' height='1.2' width='1.2'>
6666
<feGaussianBlur result='blur' stdDeviation='3'/>
6767
</filter>

examples/misc/svg_filter_pie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# that, Inkscape's exporting also may not support it.
5959

6060
filter_def = """
61-
<defs xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
61+
<defs xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
6262
<filter id='dropshadow' height='1.2' width='1.2'>
6363
<feGaussianBlur result='blur' stdDeviation='2'/>
6464
</filter>

examples/specialty_plots/leftventricle_bulleye.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def bullseye_plot(ax, data, segBold=None, cmap=None, norm=None):
6161
for i in range(r.shape[0]):
6262
ax.plot(theta, np.repeat(r[i], theta.shape), '-k', lw=linewidth)
6363

64-
# Create the bounds for the segments 1-12
64+
# Create the bounds for the segments 1-12
6565
for i in range(6):
6666
theta_i = np.deg2rad(i * 60)
6767
ax.plot([theta_i, theta_i], [r[1], 1], '-k', lw=linewidth)

examples/specialty_plots/radar_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def unit_poly_verts(theta):
121121

122122
def example_data():
123123
# The following data is from the Denver Aerosol Sources and Health study.
124-
# See doi:10.1016/j.atmosenv.2008.12.017
124+
# See doi:10.1016/j.atmosenv.2008.12.017
125125
#
126126
# The data are pollution source profile estimates for five modeled
127127
# pollution sources (e.g., cars, wood-burning, etc) that emit 7-9 chemical

lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ def plot(self, *args, scalex=True, scaley=True, **kwargs):
11361136
>>> plot(y, 'r+') # ditto, but with red plusses
11371137
11381138
You can use `.Line2D` properties as keyword arguments for more
1139-
control on the appearance. Line properties and *fmt* can be mixed.
1139+
control on the appearance. Line properties and *fmt* can be mixed.
11401140
The following two calls yield identical results:
11411141
11421142
>>> plot(x, y, 'go--', linewidth=2, markersize=12)
@@ -3155,16 +3155,15 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
31553155
31563156
labels : sequence, optional
31573157
Labels for each dataset. Length must be compatible with
3158-
dimensions of ``x``.
3158+
dimensions of ``x``.
31593159
31603160
manage_xticks : bool, optional (True)
31613161
If the function should adjust the xlim and xtick locations.
31623162
31633163
autorange : bool, optional (False)
3164-
When `True` and the data are distributed such that the 25th and
3164+
When `True` and the data are distributed such that the 25th and
31653165
75th percentiles are equal, ``whis`` is set to ``'range'`` such
3166-
that the whisker ends are at the minimum and maximum of the
3167-
data.
3166+
that the whisker ends are at the minimum and maximum of the data.
31683167
31693168
meanline : bool, optional (False)
31703169
If `True` (and ``showmeans`` is `True`), will try to render
@@ -5728,7 +5727,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
57285727
It's designed to provide the fastest pcolor-type plotting with the
57295728
Agg backend. To achieve this, it uses different algorithms internally
57305729
depending on the complexity of the input grid (regular rectangular,
5731-
non-regular rectangular or arbitrary quadrilateral).
5730+
non-regular rectangular or arbitrary quadrilateral).
57325731
57335732
.. warning::
57345733

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2596,7 +2596,7 @@ class NavigationToolbar2(object):
25962596
# )
25972597
toolitems = (
25982598
('Home', 'Reset original view', 'home', 'home'),
2599-
('Back', 'Back to previous view', 'back', 'back'),
2599+
('Back', 'Back to previous view', 'back', 'back'),
26002600
('Forward', 'Forward to next view', 'forward', 'forward'),
26012601
(None, None, None, None),
26022602
('Pan', 'Pan axes with left mouse, zoom with right', 'move', 'pan'),

lib/matplotlib/backend_managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, name, sender, tool, data=None):
2222

2323

2424
class ToolTriggerEvent(ToolEvent):
25-
"""Event to inform that a tool has been triggered"""
25+
"""Event to inform that a tool has been triggered"""
2626
def __init__(self, name, sender, tool, canvasevent=None, data=None):
2727
ToolEvent.__init__(self, name, sender, tool, data)
2828
self.canvasevent = canvasevent

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ def get_bbox_header(lbrt, rotated=False):
15641564

15651565
l, b, r, t = lbrt
15661566
if rotated:
1567-
rotate = "%.2f %.2f translate\n90 rotate" % (l+r, 0)
1567+
rotate = "%.2f %.2f translate\n90 rotate" % (l+r, 0)
15681568
else:
15691569
rotate = ""
15701570
bbox_info = '%%%%BoundingBox: %d %d %d %d' % (l, b, np.ceil(r), np.ceil(t))

lib/matplotlib/category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class StrCategoryConverter(units.ConversionInterface):
2424
@staticmethod
2525
def convert(value, unit, axis):
2626
"""Converts strings in value to floats using
27-
mapping information store in the unit object
27+
mapping information store in the unit object.
2828
2929
Parameters
3030
----------

0 commit comments

Comments
 (0)