Skip to content

Commit 2c06419

Browse files
committed
Delete the repetitive word 'the' in docstrings and comments
1 parent 27a648a commit 2c06419

21 files changed

+27
-27
lines changed

doc/users/event_handling.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ There are a variety of meanings of the ``picker`` property:
426426

427427
``float``
428428
if picker is a number it is interpreted as an epsilon tolerance in
429-
points and the the artist will fire off an event if its data is
429+
points and the artist will fire off an event if its data is
430430
within epsilon of the mouse event. For some artists like lines
431431
and patch collections, the artist may provide additional data to
432432
the pick event that is generated, e.g., the indices of the data

doc/users/patheffects_guide.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ draws the artist without any effect:
3434
plt.show()
3535

3636
Whilst the plot doesn't look any different to what you would expect without any path
37-
effects, the drawing of the text now been changed to use the the path effects
37+
effects, the drawing of the text now been changed to use the path effects
3838
framework, opening up the possibilities for more interesting examples.
3939

4040
Adding a shadow

doc/users/whats_new.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Qt4 backend
406406
```````````
407407
Rudolf Höfler changed the appearance of the subplottool. All sliders are
408408
vertically arranged now, buttons for tight layout and reset were
409-
added. Furthermore, the the subplottool is now implemented as a modal
409+
added. Furthermore, the subplottool is now implemented as a modal
410410
dialog. It was previously a QMainWindow, leaving the SPT open if one closed the
411411
plot window.
412412

examples/api/sankey_demo_basics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# This demonstrates:
2525
# 1. Setting one path longer than the others
2626
# 2. Placing a label in the middle of the diagram
27-
# 3. Using the the scale argument to normalize the flows
27+
# 3. Using the scale argument to normalize the flows
2828
# 4. Implicitly passing keyword arguments to PathPatch()
2929
# 5. Changing the angle of the arrow heads
3030
# 6. Changing the offset between the tips of the paths and their labels

examples/pylab_examples/axhspan_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# the yrange
1919
l = plt.axvline(x=0, ymin=0.75, linewidth=4, color='b')
2020

21-
# draw a default hline at y=.5 that spans the the middle half of
21+
# draw a default hline at y=.5 that spans the middle half of
2222
# the axes
2323
l = plt.axhline(y=.5, xmin=0.25, xmax=0.75)
2424

extern/agg24-svn/include/agg_scanline_u.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace agg
6262
//
6363
// scanline_u8::const_iterator span = sl.begin();
6464
//
65-
// unsigned char* row = m_rbuf->row(y); // The the address of the beginning
65+
// unsigned char* row = m_rbuf->row(y); // The address of the beginning
6666
// // of the current row
6767
//
6868
// unsigned num_spans = sl.num_spans(); // Number of spans. It's guaranteed that

extern/agg24-svn/include/platform/agg_platform_support.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ namespace agg
644644
// open it in the current directory. The demos usually expect
645645
// all the supplementary files to be placed in the current
646646
// directory, that is usually coincides with the directory where
647-
// the the executable is. However, in some systems (BeOS) it's not so.
647+
// the executable is. However, in some systems (BeOS) it's not so.
648648
// For those kinds of systems full_file_name() can help access files
649649
// preserving commonly used policy.
650650
// So, it's a good idea to use in the demos the following:

lib/matplotlib/artist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def get_sketch_params(self):
525525

526526
def set_sketch_params(self, scale=None, length=None, randomness=None):
527527
"""
528-
Sets the the sketch parameters.
528+
Sets the sketch parameters.
529529
530530
Parameters
531531
----------

lib/matplotlib/axes/_axes.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
758758
759759
>>> axvline(x=1)
760760
761-
* draw a default vline at *x* = .5 that spans the the middle half of
761+
* draw a default vline at *x* = .5 that spans the middle half of
762762
the yrange::
763763
764764
>>> axvline(x=.5, ymin=0.25, ymax=0.75)
@@ -4850,7 +4850,7 @@ def pcolor(self, *args, **kwargs):
48504850
than those of *C*; if the dimensions are the same, then the
48514851
last row and column of *C* will be ignored.
48524852
4853-
Note that the the column index corresponds to the
4853+
Note that the column index corresponds to the
48544854
*x*-coordinate, and the row index corresponds to *y*; for
48554855
details, see the :ref:`Grid Orientation
48564856
<axes-pcolor-grid-orientation>` section below.
@@ -5298,7 +5298,7 @@ def pcolorfast(self, *args, **kwargs):
52985298
produce faster and more compact output using ps, pdf, and
52995299
svg backends, however.
53005300
5301-
Note that the the column index corresponds to the x-coordinate,
5301+
Note that the column index corresponds to the x-coordinate,
53025302
and the row index corresponds to y; for details, see
53035303
the "Grid Orientation" section below.
53045304

lib/matplotlib/axis.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ def set_ticks(self, ticks, minor=False):
15811581

15821582
def _update_label_position(self, bboxes, bboxes2):
15831583
"""
1584-
Update the label position based on the the bounding box enclosing
1584+
Update the label position based on the bounding box enclosing
15851585
all the ticklabels and axis spine
15861586
"""
15871587
raise NotImplementedError('Derived must override')
@@ -1739,7 +1739,7 @@ def set_label_position(self, position):
17391739

17401740
def _update_label_position(self, bboxes, bboxes2):
17411741
"""
1742-
Update the label position based on the the bounding box enclosing
1742+
Update the label position based on the bounding box enclosing
17431743
all the ticklabels and axis spine
17441744
"""
17451745
if not self._autolabelpos:
@@ -2057,7 +2057,7 @@ def set_label_position(self, position):
20572057

20582058
def _update_label_position(self, bboxes, bboxes2):
20592059
"""
2060-
Update the label position based on the the bounding box enclosing
2060+
Update the label position based on the bounding box enclosing
20612061
all the ticklabels and axis spine
20622062
"""
20632063
if not self._autolabelpos:

lib/matplotlib/backend_bases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ def get_sketch_params(self):
11341134

11351135
def set_sketch_params(self, scale=None, length=None, randomness=None):
11361136
"""
1137-
Sets the the sketch parameters.
1137+
Sets the sketch parameters.
11381138
11391139
Parameters
11401140
----------

lib/matplotlib/image.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def _get_rotate_and_skew_transform(x1, y1, x2, y2, x3, y3):
242242
243243
It was intended to derive a skew transform that preserve the
244244
lower-left corner (x1, y1) and top-right corner(x2,y2), but
245-
change the the lower-right-corner(x2, y1) to a new position
245+
change the lower-right-corner(x2, y1) to a new position
246246
(x3, y3).
247247
"""
248248
tr1 = mtransforms.Affine2D()

lib/matplotlib/legend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ def get_title(self):
803803
return self._legend_title_box._text
804804

805805
def get_window_extent(self, *args, **kwargs):
806-
'return a extent of the the legend'
806+
'return a extent of the legend'
807807
return self.legendPatch.get_window_extent(*args, **kwargs)
808808

809809
def get_frame_on(self):

lib/matplotlib/mlab.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2440,7 +2440,7 @@ def rec_groupby(r, groupby, stats):
24402440
stats = ( ('sales', len, 'numsales'), ('sales', np.mean, 'avgsale') )
24412441
24422442
Return record array has *dtype* names for each attribute name in
2443-
the the *groupby* argument, with the associated group values, and
2443+
the *groupby* argument, with the associated group values, and
24442444
for each outname name in the *stats* argument, with the associated
24452445
stat summary output.
24462446
"""
@@ -2477,7 +2477,7 @@ def rec_summarize(r, summaryfuncs):
24772477
*r* is a numpy record array
24782478
24792479
*summaryfuncs* is a list of (*attr*, *func*, *outname*) tuples
2480-
which will apply *func* to the the array *r*[attr] and assign the
2480+
which will apply *func* to the array *r*[attr] and assign the
24812481
output to a new attribute name *outname*. The returned record
24822482
array is identical to *r*, with extra arrays for each element in
24832483
*summaryfuncs*.

lib/matplotlib/patches.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3118,7 +3118,7 @@ class and must be overriden in the subclasses. It receives
31183118
the path object along which the arrow will be drawn, and
31193119
the mutation_size, with which the amount arrow head and
31203120
etc. will be scaled. The linewidth may be used to adjust
3121-
the the path so that it does not pass beyond the given
3121+
the path so that it does not pass beyond the given
31223122
points. It returns a tuple of a Path instance and a
31233123
boolean. The boolean value indicate whether the path can
31243124
be filled or not. The return value can also be a list of paths

lib/matplotlib/quiver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
'x' or 'y', the arrows get larger as one zooms in; for other
8383
units, the arrow size is independent of the zoom state. For
8484
'width or 'height', the arrow size increases with the width and
85-
height of the axes, respectively, when the the window is resized;
85+
height of the axes, respectively, when the window is resized;
8686
for 'dots' or 'inches', resizing does not change the arrows.
8787
8888

lib/matplotlib/sankey.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def add(self, patchlabel='', flows=None, orientations=None, labels='',
454454
placed along the sides of the diagram from the top down and along the
455455
bottom from the outside in.
456456
457-
If the the sum of the inputs and outputs is nonzero, the discrepancy
457+
If the sum of the inputs and outputs is nonzero, the discrepancy
458458
will appear as a cubic Bezier curve along the top and bottom edges of
459459
the trunk.
460460

lib/matplotlib/tests/test_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ def test_hist2d():
11371137
@image_comparison(baseline_images=['hist2d_transpose'])
11381138
def test_hist2d_transpose():
11391139
np.random.seed(0)
1140-
# make sure the the output from np.histogram is transposed before
1140+
# make sure the output from np.histogram is transposed before
11411141
# passing to pcolorfast
11421142
x = np.array([5]*100)
11431143
y = np.random.randn(100)-2

lib/matplotlib/text.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def set_bbox(self, rectprops):
483483

484484
def get_bbox_patch(self):
485485
"""
486-
Return the bbox Patch object. Returns None if the the
486+
Return the bbox Patch object. Returns None if the
487487
FancyBboxPatch is not made.
488488
"""
489489
return self._bbox_patch
@@ -1686,7 +1686,7 @@ def get_annotation_clip(self):
16861686
return self._annotation_clip
16871687

16881688
def _get_position_xy(self, renderer):
1689-
"Return the pixel position of the the annotated point."
1689+
"Return the pixel position of the annotated point."
16901690
x, y = self.xy
16911691
return self._get_xy(renderer, x, y, self.xycoords)
16921692

setupext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ def check(self):
11891189
# dateutil 2.1 has a file encoding bug that breaks installation on
11901190
# python 3.3
11911191
# https://github.com/matplotlib/matplotlib/issues/2373
1192-
# hack around the problem by installing the the (working) v2.0
1192+
# hack around the problem by installing the (working) v2.0
11931193
major, minor1, _, _, _ = sys.version_info
11941194
if self.version is None and (major, minor1) == (3, 3):
11951195
self.version = '!=2.1'

unit/virtualenv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
14611461
if '.framework' in prefix:
14621462
if 'Python.framework' in prefix:
14631463
logger.debug('MacOSX Python framework detected')
1464-
# Make sure we use the the embedded interpreter inside
1464+
# Make sure we use the embedded interpreter inside
14651465
# the framework, even if sys.executable points to
14661466
# the stub executable in ${sys.prefix}/bin
14671467
# See http://groups.google.com/group/python-virtualenv/

0 commit comments

Comments
 (0)