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

Skip to content

Commit a089e06

Browse files
committed
Spelling fixes.
1 parent c2ff409 commit a089e06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+138
-146
lines changed

doc/api/api_changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ Changes regarding the text.latex.unicode rcParam
359359
------------------------------------------------
360360

361361
The rcParam now defaults to True and is deprecated (i.e., in future versions
362-
of Maplotlib, unicode input will always be supported).
362+
of Matplotlib, unicode input will always be supported).
363363

364364
Moreover, the underlying implementation now uses ``\usepackage[utf8]{inputenc}``
365365
instead of ``\usepackage{ucs}\usepackage[utf8x]{inputenc}``.

doc/api/next_api_changes/2018-05-15-AL-removals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Changes regarding the text.latex.unicode rcParam
22
````````````````````````````````````````````````
33

44
The rcParam now defaults to True and is deprecated (i.e., in future versions
5-
of Maplotlib, unicode input will always be supported).
5+
of Matplotlib, unicode input will always be supported).
66

77
Moreover, the underlying implementation now uses ``\usepackage[utf8]{inputenc}``
88
instead of ``\usepackage{ucs}\usepackage[utf8x]{inputenc}``.

doc/faq/howto_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ As of Matplotlib 2.2, `numpy.datetime64` objects are handled the same way
2323
as `datetime.datetime` objects.
2424

2525
If you prefer the pandas converters and locators, you can register their
26-
converter with the `matplolib.units` module::
26+
converter with the `matplotlib.units` module::
2727

2828
from pandas.tseries import converter as pdtc
2929
pdtc.register()

doc/users/generate_credits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def check_duplicates():
6565
email_counter = Counter(emails)
6666

6767
if email_counter.most_common(1)[0][1] > 1:
68-
print('DUPLICATE CHECK: The following email addesses are used with more '
69-
'than one name.\nConsider adding them to .mailmap.\n')
68+
print('DUPLICATE CHECK: The following email addresses are used with '
69+
'more than one name.\nConsider adding them to .mailmap.\n')
7070
for email, count in email_counter.items():
7171
if count > 1:
7272
print('%s\n%s' % (email, '\n'.join(l for l in lines if email in l)))

examples/axes_grid1/inset_locator_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
transform=ax.transAxes))
7474

7575
# We set the axis limits to something other than the default, in order to not
76-
# distract from the fact that axes coodinates are used here.
76+
# distract from the fact that axes coordinates are used here.
7777
ax.axis([0, 10, 0, 10])
7878

7979

examples/color/color_cycler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# For the most general use-case, you can provide a cycler to
3636
# `.set_prop_cycle`.
3737
# Here, we use the convenient shortcut that we can alternatively pass
38-
# one or more properties as keyword arguements. This creates and sets
38+
# one or more properties as keyword arguments. This creates and sets
3939
# a cycler iterating simultaneously over all properties.
4040
ax1.set_prop_cycle(color=['c', 'm', 'y', 'k'], lw=[1, 2, 3, 4])
4141
ax1.plot(yy)

examples/color/colorbar_basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
neg = ax2.imshow(Zneg, cmap='Reds_r', interpolation='none')
3636
fig.colorbar(neg, ax=ax2)
3737

38-
# Plot both positive and negative values betwen +/- 1.2
38+
# Plot both positive and negative values between +/- 1.2
3939
pos_neg_clipped = ax3.imshow(Z, cmap='RdBu', vmin=-1.2, vmax=1.2,
4040
interpolation='none')
4141
# Add minorticks on the colorbar to make it easy to read the

examples/images_contours_and_fields/image_annotated_heatmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def annotate_heatmap(im, data=None, valfmt="{x:.2f}",
237237
# Some more complex heatmap examples
238238
# ----------------------------------
239239
#
240-
# In the following we show the versitality of the previously created
240+
# In the following we show the versatility of the previously created
241241
# functions by applying it in different cases and using different arguments.
242242
#
243243

examples/misc/demo_agg_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def filtered_text(ax):
203203
fmt='%1.1f',
204204
fontsize=11)
205205

206-
# change clable color to black
206+
# change clabel color to black
207207
from matplotlib.patheffects import Normal
208208
for t in cl:
209209
t.set_color("k")

examples/specialty_plots/leftventricle_bulleye.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
=====================
3-
Leftventricle Bulleye
4-
=====================
2+
=======================
3+
Left ventricle bullseye
4+
=======================
55
66
This example demonstrates how to create the 17 segment model for the left
77
ventricle recommended by the American Heart Association (AHA).

examples/userdemo/connect_simple01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
arrowstyle="->", shrinkB=5)
3434
ax2.add_artist(con)
3535

36-
# Draw a line between the different points, defined in differnt coordinate
36+
# Draw a line between the different points, defined in different coordinate
3737
# systems.
3838
xyA = (0.6, 1.0) # in axes coordinates
3939
xyB = (0.0, 0.2) # x in axes coordinates, y in data coordinates

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def _get_data_path():
529529

530530
def get_candidate_paths():
531531
yield Path(__file__).with_name('mpl-data')
532-
# setuptools' namespace_packages may highjack this init file
532+
# setuptools' namespace_packages may hijack this init file
533533
# so need to try something known to be in Matplotlib, not basemap.
534534
import matplotlib.afm
535535
yield Path(matplotlib.afm.__file__).with_name('mpl-data')

lib/matplotlib/_cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ def _g36(x): return 2 * x - 1
941941
)
942942

943943

944-
# The next 7 palettes are from the Yorick scientific visalisation package,
944+
# The next 7 palettes are from the Yorick scientific visualization package,
945945
# an evolution of the GIST package, both by David H. Munro.
946946
# They are released under a BSD-like license (see LICENSE_YORICK in
947947
# the license directory of the matplotlib source distribution).

lib/matplotlib/_constrained_layout.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
# - axes + pos for the axes (i.e. the total area taken by axis and
2626
# the actual "position" argument that needs to be sent to
2727
# ax.set_position.)
28-
# - The axes layout box will also encomapss the legend, and that is
29-
# how legends get included (axes legeneds, not figure legends)
30-
# - colorbars are sibblings of the axes if they are single-axes
28+
# - The axes layout box will also encompass the legend, and that is
29+
# how legends get included (axes legends, not figure legends)
30+
# - colorbars are siblings of the axes if they are single-axes
3131
# colorbars
3232
# OR:
3333
# - a gridspec can be inside a subplotspec.
@@ -40,7 +40,7 @@
4040
# colorbars.
4141
# - suptitle:
4242
# - right now suptitles are just stacked atop everything else in figure.
43-
# Could imagine suptitles being gridspec suptitles, but not implimented
43+
# Could imagine suptitles being gridspec suptitles, but not implemented
4444
#
4545
# Todo: AnchoredOffsetbox connected to gridspecs or axes. This would
4646
# be more general way to add extra-axes annotations.
@@ -118,9 +118,9 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
118118
the axes (decorations) like the title, ticklabels, x-labels, etc. This
119119
can include legends who overspill the axes boundaries.
120120
4. Constrain gridspec elements to line up:
121-
a) if colnum0 neq colnumC, the two subplotspecs are stacked next to
121+
a) if colnum0 != colnumC, the two subplotspecs are stacked next to
122122
each other, with the appropriate order.
123-
b) if colnum0 == columnC line up the left or right side of the
123+
b) if colnum0 == colnumC, line up the left or right side of the
124124
_poslayoutbox (depending if it is the min or max num that is equal).
125125
c) do the same for rows...
126126
5. The above doesn't constrain relative sizes of the _poslayoutboxes at
@@ -164,7 +164,7 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
164164
_make_ghost_gridspec_slots(fig, gs)
165165

166166
for nnn in range(2):
167-
# do the algrithm twice. This has to be done because decorators
167+
# do the algorithm twice. This has to be done because decorators
168168
# change size after the first re-position (i.e. x/yticklabels get
169169
# larger/smaller). This second reposition tends to be much milder,
170170
# so doing twice makes things work OK.
@@ -192,7 +192,7 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
192192

193193
if fig._layoutbox.constrained_layout_called < 1:
194194
# arrange the subplotspecs... This is all done relative to each
195-
# other. Some subplotspecs conatain axes, and others contain
195+
# other. Some subplotspecs contain axes, and others contain
196196
# gridspecs the ones that contain gridspecs are a set proportion
197197
# of their parent gridspec. The ones that contain axes are
198198
# not so constrained.
@@ -230,8 +230,8 @@ def _make_ghost_gridspec_slots(fig, gs):
230230
"""
231231
Check for unoccupied gridspec slots and make ghost axes for these
232232
slots... Do for each gs separately. This is a pretty big kludge
233-
but shoudn't have too much ill effect. The worst is that
234-
someone querrying the figure will wonder why there are more
233+
but shouldn't have too much ill effect. The worst is that
234+
someone querying the figure will wonder why there are more
235235
axes than they thought.
236236
"""
237237
nrows, ncols = gs.get_geometry()
@@ -512,7 +512,7 @@ def _arrange_subplotspecs(gs, hspace=0, wspace=0):
512512

513513
def layoutcolorbarsingle(ax, cax, shrink, aspect, location, pad=0.05):
514514
"""
515-
Do the layout for a colorbar, to not oeverly pollute colorbar.py
515+
Do the layout for a colorbar, to not overly pollute colorbar.py
516516
517517
`pad` is in fraction of the original axis size.
518518
"""
@@ -601,7 +601,7 @@ def _getmaxminrowcolumn(axs):
601601

602602
def layoutcolorbargridspec(parents, cax, shrink, aspect, location, pad=0.05):
603603
"""
604-
Do the layout for a colorbar, to not oeverly pollute colorbar.py
604+
Do the layout for a colorbar, to not overly pollute colorbar.py
605605
606606
`pad` is in fraction of the original axis size.
607607
"""

lib/matplotlib/_layoutbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, parent=None, name='', tightwidth=False,
8787
self.min_height = Variable(str(sn + 'min_height'))
8888
self.pref_width = Variable(str(sn + 'pref_width'))
8989
self.pref_height = Variable(str(sn + 'pref_height'))
90-
# margis are only used for axes-position layout boxes. maybe should
90+
# margins are only used for axes-position layout boxes. maybe should
9191
# be a separate subclass:
9292
self.left_margin = Variable(str(sn + 'left_margin'))
9393
self.right_margin = Variable(str(sn + 'right_margin'))
@@ -117,7 +117,7 @@ def constrain_margins(self):
117117
margin between the position of the axes and the outer edge of
118118
the axes.
119119
120-
Margins are variable because they change with the fogure size.
120+
Margins are variable because they change with the figure size.
121121
122122
Margin minimums are set to make room for axes decorations. However,
123123
the margins can be larger if we are mathicng the position size to

lib/matplotlib/animation.py

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

5252
# Other potential writing methods:
5353
# * http://pymedia.org/
54-
# * libmng (produces swf) python wrappers: https://github.com/libming/libming
54+
# * libming (produces swf) python wrappers: https://github.com/libming/libming
5555
# * Wrap x264 API:
5656

5757
# (http://stackoverflow.com/questions/2940671/

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ def getp(obj, property=None):
14421442
getp(obj, 'linestyle') # get the linestyle property
14431443
14441444
*obj* is a :class:`Artist` instance, e.g.,
1445-
:class:`~matplotllib.lines.Line2D` or an instance of a
1445+
:class:`~matplotlib.lines.Line2D` or an instance of a
14461446
:class:`~matplotlib.axes.Axes` or :class:`matplotlib.text.Text`.
14471447
If the *property* is 'somename', this function returns
14481448

lib/matplotlib/axes/_axes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ def _convert_dx(dx, x0, xconv, convert):
20592059
dx = dx[0]
20602060
except (ValueError, TypeError, AttributeError):
20612061
# if the above fails (for any reason) just fallback to what
2062-
# we do by default and convert dx by iteslf.
2062+
# we do by default and convert dx by itself.
20632063
dx = convert(dx)
20642064
return dx
20652065

@@ -3536,7 +3536,7 @@ def _update_dict(dictionary, rc_name, properties):
35363536
rcParams[rc_str.format(rc_name, prop_dict)])
35373537
return dictionary
35383538

3539-
# Common property dictionnaries loading from rc
3539+
# Common property dicts loading from rc.
35403540
flier_props = ['color', 'marker', 'markerfacecolor', 'markeredgecolor',
35413541
'markersize', 'linestyle', 'linewidth']
35423542
default_props = ['color', 'linewidth', 'linestyle']
@@ -4261,7 +4261,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
42614261
42624262
- 'face': The edge color will always be the same as the face color.
42634263
- 'none': No patch boundary will be drawn.
4264-
- A matplotib color or sequence of color.
4264+
- A Matplotlib color or sequence of color.
42654265
42664266
Defaults to ``None``, in which case it takes the value of
42674267
:rc:`scatter.edgecolors` = 'face'.
@@ -5253,7 +5253,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
52535253
By default, the nodes of the polygon defining the filled region
52545254
will only be placed at the positions in the *y* array. Such a
52555255
polygon cannot describe the above semantics close to the
5256-
intersection. The y-sections containing the intersecion are
5256+
intersection. The y-sections containing the intersection are
52575257
simply clipped.
52585258
52595259
Setting *interpolate* to *True* will calculate the actual
@@ -5594,7 +5594,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
55945594
def _pcolorargs(funcname, *args, allmatch=False):
55955595
# If allmatch is True, then the incoming X, Y, C must have matching
55965596
# dimensions, taking into account that X and Y can be 1-D rather than
5597-
# 2-D. This perfect match is required for Gouroud shading. For flat
5597+
# 2-D. This perfect match is required for Gouraud shading. For flat
55985598
# shading, X and Y specify boundaries, so we need one more boundary
55995599
# than color in each direction. For convenience, and consistent with
56005600
# Matlab, we discard the last row and/or column of C if necessary to
@@ -6145,7 +6145,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61456145
quadilaterals. There are different ways to do this:
61466146
61476147
- Use tuples ``X=(xmin, xmax)`` and ``Y=(ymin, ymax)`` to define
6148-
a *uniform rectiangular grid*.
6148+
a *uniform rectangular grid*.
61496149
61506150
The tuples define the outer edges of the grid. All individual
61516151
quadrilaterals will be of the same size. This is the fastest
@@ -7975,7 +7975,7 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
79757975
automatically set to match the positions.
79767976
79777977
vert : bool, default = True.
7978-
If true, plots the violins veritcally.
7978+
If true, plots the violins vertically.
79797979
Otherwise, plots the violins horizontally.
79807980
79817981
widths : array-like, default = 0.5

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,12 +2517,11 @@ def _update_title_position(self, renderer):
25172517
y = self.transAxes.inverted().transform(
25182518
(0., top))[1]
25192519
title.set_position((x, y))
2520-
# emperically, this doesn't always get the min to top,
2520+
# empirically, this doesn't always get the min to top,
25212521
# so we need to adjust again.
25222522
if title.get_window_extent(renderer).ymin < top:
2523-
y = self.transAxes.inverted().transform(
2524-
(0., 2 * top -
2525-
title.get_window_extent(renderer).ymin))[1]
2523+
_, y = self.transAxes.inverted().transform(
2524+
(0., 2 * top - title.get_window_extent(renderer).ymin))
25262525
title.set_position((x, y))
25272526
ymax = max(y, ymax)
25282527
for title in titles:

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def _update_pointer_position(self, guiEvent=None):
305305
#
306306
# 3) process it as a motion notify event. This also has pros
307307
# and cons. The mouse is moving relative to the window, but
308-
# this may surpise an event handler writer who is getting
308+
# this may surprise an event handler writer who is getting
309309
# motion_notify_events even if the mouse has not moved
310310

311311
# here are the three scenarios

lib/matplotlib/backends/backend_agg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def restore_region(self, region, bbox=None, xy=None):
284284
"""
285285
Restore the saved region. If bbox (instance of BboxBase, or
286286
its extents) is given, only the region specified by the bbox
287-
will be restored. *xy* (a tuple of two floasts) optionally
287+
will be restored. *xy* (a pair of floats) optionally
288288
specifies the new position (the LLC of the original region,
289289
not the LLC of the bbox) where the region will be restored.
290290

lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def get_char_width(charcode):
940940

941941
with warnings.catch_warnings():
942942
# Ignore 'Required glyph missing from current font' warning
943-
# from ft2font: here we're just builting the widths table, but
943+
# from ft2font: here we're just building the widths table, but
944944
# the missing glyphs may not even be used in the actual string.
945945
warnings.filterwarnings("ignore")
946946
widths = [get_char_width(charcode)
@@ -1602,10 +1602,9 @@ def check_gc(self, gc, fillcolor=None):
16021602
orig_alphas = getattr(gc, '_effective_alphas', (1.0, 1.0))
16031603

16041604
if gc.get_rgb() is None:
1605-
# it should not matter what color here
1606-
# since linewidth should be 0
1607-
# unless affected by global settings in rcParams
1608-
# hence setting zero alpha just incase
1605+
# It should not matter what color here since linewidth should be
1606+
# 0 unless affected by global settings in rcParams, hence setting
1607+
# zero alpha just in case.
16091608
gc.set_foreground((0, 0, 0, 0), isRGBA=True)
16101609

16111610
if gc._forced_alpha:

lib/matplotlib/backends/backend_pgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def __del__(self):
342342

343343
def get_width_height_descent(self, text, prop):
344344
"""
345-
Get the width, total height and descent for a text typesetted by the
345+
Get the width, total height and descent for a text typeset by the
346346
current LaTeX environment.
347347
"""
348348

lib/matplotlib/backends/backend_ps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def afmfontd(self, _cache=cbook.maxdict(50)):
195195
_use_afm_rc_name = "ps.useafm"
196196

197197
def __init__(self, width, height, pswriter, imagedpi=72):
198-
# Although postscript itself is dpi independent, we need to imform the
198+
# Although postscript itself is dpi independent, we need to inform the
199199
# image code about a requested dpi to generate high resolution images
200200
# and them scale them before embedding them.
201201
RendererBase.__init__(self)
@@ -731,7 +731,7 @@ def draw_gouraud_triangles(self, gc, points, colors, trans):
731731

732732
def _draw_ps(self, ps, gc, rgbFace, fill=True, stroke=True, command=None):
733733
"""
734-
Emit the PostScript sniplet 'ps' with all the attributes from 'gc'
734+
Emit the PostScript snippet 'ps' with all the attributes from 'gc'
735735
applied. 'ps' must consist of PostScript commands to construct a path.
736736
737737
The fill and/or stroke kwargs can be set to False if the
@@ -1417,7 +1417,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False):
14171417

14181418
def get_bbox_header(lbrt, rotated=False):
14191419
"""
1420-
return a postscript header stringfor the given bbox lbrt=(l, b, r, t).
1420+
return a postscript header string for the given bbox lbrt=(l, b, r, t).
14211421
Optionally, return rotate command.
14221422
"""
14231423

0 commit comments

Comments
 (0)