Skip to content

Commit

Permalink
Delete the repetitive word 'the' in docstrings and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkid committed Apr 17, 2015
1 parent 27a648a commit 2c06419
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion doc/users/event_handling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ There are a variety of meanings of the ``picker`` property:

``float``
if picker is a number it is interpreted as an epsilon tolerance in
points and the the artist will fire off an event if its data is
points and the artist will fire off an event if its data is
within epsilon of the mouse event. For some artists like lines
and patch collections, the artist may provide additional data to
the pick event that is generated, e.g., the indices of the data
Expand Down
2 changes: 1 addition & 1 deletion doc/users/patheffects_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ draws the artist without any effect:
plt.show()

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

Adding a shadow
Expand Down
2 changes: 1 addition & 1 deletion doc/users/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ Qt4 backend
```````````
Rudolf Höfler changed the appearance of the subplottool. All sliders are
vertically arranged now, buttons for tight layout and reset were
added. Furthermore, the the subplottool is now implemented as a modal
added. Furthermore, the subplottool is now implemented as a modal
dialog. It was previously a QMainWindow, leaving the SPT open if one closed the
plot window.

Expand Down
2 changes: 1 addition & 1 deletion examples/api/sankey_demo_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# This demonstrates:
# 1. Setting one path longer than the others
# 2. Placing a label in the middle of the diagram
# 3. Using the the scale argument to normalize the flows
# 3. Using the scale argument to normalize the flows
# 4. Implicitly passing keyword arguments to PathPatch()
# 5. Changing the angle of the arrow heads
# 6. Changing the offset between the tips of the paths and their labels
Expand Down
2 changes: 1 addition & 1 deletion examples/pylab_examples/axhspan_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# the yrange
l = plt.axvline(x=0, ymin=0.75, linewidth=4, color='b')

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

Expand Down
2 changes: 1 addition & 1 deletion extern/agg24-svn/include/agg_scanline_u.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace agg
//
// scanline_u8::const_iterator span = sl.begin();
//
// unsigned char* row = m_rbuf->row(y); // The the address of the beginning
// unsigned char* row = m_rbuf->row(y); // The address of the beginning
// // of the current row
//
// unsigned num_spans = sl.num_spans(); // Number of spans. It's guaranteed that
Expand Down
2 changes: 1 addition & 1 deletion extern/agg24-svn/include/platform/agg_platform_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ namespace agg
// open it in the current directory. The demos usually expect
// all the supplementary files to be placed in the current
// directory, that is usually coincides with the directory where
// the the executable is. However, in some systems (BeOS) it's not so.
// the executable is. However, in some systems (BeOS) it's not so.
// For those kinds of systems full_file_name() can help access files
// preserving commonly used policy.
// So, it's a good idea to use in the demos the following:
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def get_sketch_params(self):

def set_sketch_params(self, scale=None, length=None, randomness=None):
"""
Sets the the sketch parameters.
Sets the sketch parameters.
Parameters
----------
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
>>> axvline(x=1)
* draw a default vline at *x* = .5 that spans the the middle half of
* draw a default vline at *x* = .5 that spans the middle half of
the yrange::
>>> axvline(x=.5, ymin=0.25, ymax=0.75)
Expand Down Expand Up @@ -4850,7 +4850,7 @@ def pcolor(self, *args, **kwargs):
than those of *C*; if the dimensions are the same, then the
last row and column of *C* will be ignored.
Note that the the column index corresponds to the
Note that the column index corresponds to the
*x*-coordinate, and the row index corresponds to *y*; for
details, see the :ref:`Grid Orientation
<axes-pcolor-grid-orientation>` section below.
Expand Down Expand Up @@ -5298,7 +5298,7 @@ def pcolorfast(self, *args, **kwargs):
produce faster and more compact output using ps, pdf, and
svg backends, however.
Note that the the column index corresponds to the x-coordinate,
Note that the column index corresponds to the x-coordinate,
and the row index corresponds to y; for details, see
the "Grid Orientation" section below.
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,7 @@ def set_ticks(self, ticks, minor=False):

def _update_label_position(self, bboxes, bboxes2):
"""
Update the label position based on the the bounding box enclosing
Update the label position based on the bounding box enclosing
all the ticklabels and axis spine
"""
raise NotImplementedError('Derived must override')
Expand Down Expand Up @@ -1739,7 +1739,7 @@ def set_label_position(self, position):

def _update_label_position(self, bboxes, bboxes2):
"""
Update the label position based on the the bounding box enclosing
Update the label position based on the bounding box enclosing
all the ticklabels and axis spine
"""
if not self._autolabelpos:
Expand Down Expand Up @@ -2057,7 +2057,7 @@ def set_label_position(self, position):

def _update_label_position(self, bboxes, bboxes2):
"""
Update the label position based on the the bounding box enclosing
Update the label position based on the bounding box enclosing
all the ticklabels and axis spine
"""
if not self._autolabelpos:
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ def get_sketch_params(self):

def set_sketch_params(self, scale=None, length=None, randomness=None):
"""
Sets the the sketch parameters.
Sets the sketch parameters.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _get_rotate_and_skew_transform(x1, y1, x2, y2, x3, y3):
It was intended to derive a skew transform that preserve the
lower-left corner (x1, y1) and top-right corner(x2,y2), but
change the the lower-right-corner(x2, y1) to a new position
change the lower-right-corner(x2, y1) to a new position
(x3, y3).
"""
tr1 = mtransforms.Affine2D()
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def get_title(self):
return self._legend_title_box._text

def get_window_extent(self, *args, **kwargs):
'return a extent of the the legend'
'return a extent of the legend'
return self.legendPatch.get_window_extent(*args, **kwargs)

def get_frame_on(self):
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@ def rec_groupby(r, groupby, stats):
stats = ( ('sales', len, 'numsales'), ('sales', np.mean, 'avgsale') )
Return record array has *dtype* names for each attribute name in
the the *groupby* argument, with the associated group values, and
the *groupby* argument, with the associated group values, and
for each outname name in the *stats* argument, with the associated
stat summary output.
"""
Expand Down Expand Up @@ -2477,7 +2477,7 @@ def rec_summarize(r, summaryfuncs):
*r* is a numpy record array
*summaryfuncs* is a list of (*attr*, *func*, *outname*) tuples
which will apply *func* to the the array *r*[attr] and assign the
which will apply *func* to the array *r*[attr] and assign the
output to a new attribute name *outname*. The returned record
array is identical to *r*, with extra arrays for each element in
*summaryfuncs*.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -3118,7 +3118,7 @@ class and must be overriden in the subclasses. It receives
the path object along which the arrow will be drawn, and
the mutation_size, with which the amount arrow head and
etc. will be scaled. The linewidth may be used to adjust
the the path so that it does not pass beyond the given
the path so that it does not pass beyond the given
points. It returns a tuple of a Path instance and a
boolean. The boolean value indicate whether the path can
be filled or not. The return value can also be a list of paths
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/quiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
'x' or 'y', the arrows get larger as one zooms in; for other
units, the arrow size is independent of the zoom state. For
'width or 'height', the arrow size increases with the width and
height of the axes, respectively, when the the window is resized;
height of the axes, respectively, when the window is resized;
for 'dots' or 'inches', resizing does not change the arrows.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/sankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def add(self, patchlabel='', flows=None, orientations=None, labels='',
placed along the sides of the diagram from the top down and along the
bottom from the outside in.
If the the sum of the inputs and outputs is nonzero, the discrepancy
If the sum of the inputs and outputs is nonzero, the discrepancy
will appear as a cubic Bezier curve along the top and bottom edges of
the trunk.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ def test_hist2d():
@image_comparison(baseline_images=['hist2d_transpose'])
def test_hist2d_transpose():
np.random.seed(0)
# make sure the the output from np.histogram is transposed before
# make sure the output from np.histogram is transposed before
# passing to pcolorfast
x = np.array([5]*100)
y = np.random.randn(100)-2
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def set_bbox(self, rectprops):

def get_bbox_patch(self):
"""
Return the bbox Patch object. Returns None if the the
Return the bbox Patch object. Returns None if the
FancyBboxPatch is not made.
"""
return self._bbox_patch
Expand Down Expand Up @@ -1686,7 +1686,7 @@ def get_annotation_clip(self):
return self._annotation_clip

def _get_position_xy(self, renderer):
"Return the pixel position of the the annotated point."
"Return the pixel position of the annotated point."
x, y = self.xy
return self._get_xy(renderer, x, y, self.xycoords)

Expand Down
2 changes: 1 addition & 1 deletion setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ def check(self):
# dateutil 2.1 has a file encoding bug that breaks installation on
# python 3.3
# https://github.com/matplotlib/matplotlib/issues/2373
# hack around the problem by installing the the (working) v2.0
# hack around the problem by installing the (working) v2.0
major, minor1, _, _, _ = sys.version_info
if self.version is None and (major, minor1) == (3, 3):
self.version = '!=2.1'
Expand Down
2 changes: 1 addition & 1 deletion unit/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
if '.framework' in prefix:
if 'Python.framework' in prefix:
logger.debug('MacOSX Python framework detected')
# Make sure we use the the embedded interpreter inside
# Make sure we use the embedded interpreter inside
# the framework, even if sys.executable points to
# the stub executable in ${sys.prefix}/bin
# See http://groups.google.com/group/python-virtualenv/
Expand Down

0 comments on commit 2c06419

Please sign in to comment.