Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Spelling fixes. #13307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Changes regarding the text.latex.unicode rcParam
------------------------------------------------

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

Moreover, the underlying implementation now uses ``\usepackage[utf8]{inputenc}``
instead of ``\usepackage{ucs}\usepackage[utf8x]{inputenc}``.
Expand Down
2 changes: 1 addition & 1 deletion 2 doc/api/next_api_changes/2018-05-15-AL-removals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Changes regarding the text.latex.unicode rcParam
````````````````````````````````````````````````

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

Moreover, the underlying implementation now uses ``\usepackage[utf8]{inputenc}``
instead of ``\usepackage{ucs}\usepackage[utf8x]{inputenc}``.
2 changes: 1 addition & 1 deletion 2 doc/faq/howto_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ As of Matplotlib 2.2, `numpy.datetime64` objects are handled the same way
as `datetime.datetime` objects.

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

from pandas.tseries import converter as pdtc
pdtc.register()
Expand Down
4 changes: 2 additions & 2 deletions 4 doc/users/generate_credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def check_duplicates():
email_counter = Counter(emails)

if email_counter.most_common(1)[0][1] > 1:
print('DUPLICATE CHECK: The following email addesses are used with more '
'than one name.\nConsider adding them to .mailmap.\n')
print('DUPLICATE CHECK: The following email addresses are used with '
'more than one name.\nConsider adding them to .mailmap.\n')
for email, count in email_counter.items():
if count > 1:
print('%s\n%s' % (email, '\n'.join(l for l in lines if email in l)))
Expand Down
2 changes: 1 addition & 1 deletion 2 examples/axes_grid1/inset_locator_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
transform=ax.transAxes))

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


Expand Down
2 changes: 1 addition & 1 deletion 2 examples/color/color_cycler.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# For the most general use-case, you can provide a cycler to
# `.set_prop_cycle`.
# Here, we use the convenient shortcut that we can alternatively pass
# one or more properties as keyword arguements. This creates and sets
# one or more properties as keyword arguments. This creates and sets
# a cycler iterating simultaneously over all properties.
ax1.set_prop_cycle(color=['c', 'm', 'y', 'k'], lw=[1, 2, 3, 4])
ax1.plot(yy)
Expand Down
2 changes: 1 addition & 1 deletion 2 examples/color/colorbar_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
neg = ax2.imshow(Zneg, cmap='Reds_r', interpolation='none')
fig.colorbar(neg, ax=ax2)

# Plot both positive and negative values betwen +/- 1.2
# Plot both positive and negative values between +/- 1.2
pos_neg_clipped = ax3.imshow(Z, cmap='RdBu', vmin=-1.2, vmax=1.2,
interpolation='none')
# Add minorticks on the colorbar to make it easy to read the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def annotate_heatmap(im, data=None, valfmt="{x:.2f}",
# Some more complex heatmap examples
# ----------------------------------
#
# In the following we show the versitality of the previously created
# In the following we show the versatility of the previously created
# functions by applying it in different cases and using different arguments.
#

Expand Down
2 changes: 1 addition & 1 deletion 2 examples/misc/demo_agg_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def filtered_text(ax):
fmt='%1.1f',
fontsize=11)

# change clable color to black
# change clabel color to black
from matplotlib.patheffects import Normal
for t in cl:
t.set_color("k")
Expand Down
6 changes: 3 additions & 3 deletions 6 examples/specialty_plots/leftventricle_bulleye.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
=====================
Leftventricle Bulleye
=====================
=======================
Left ventricle bullseye
=======================

This example demonstrates how to create the 17 segment model for the left
ventricle recommended by the American Heart Association (AHA).
Expand Down
2 changes: 1 addition & 1 deletion 2 examples/userdemo/connect_simple01.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
arrowstyle="->", shrinkB=5)
ax2.add_artist(con)

# Draw a line between the different points, defined in differnt coordinate
# Draw a line between the different points, defined in different coordinate
# systems.
xyA = (0.6, 1.0) # in axes coordinates
xyB = (0.0, 0.2) # x in axes coordinates, y in data coordinates
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def _get_data_path():

def get_candidate_paths():
yield Path(__file__).with_name('mpl-data')
# setuptools' namespace_packages may highjack this init file
# setuptools' namespace_packages may hijack this init file
# so need to try something known to be in Matplotlib, not basemap.
import matplotlib.afm
yield Path(matplotlib.afm.__file__).with_name('mpl-data')
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/_cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ def _g36(x): return 2 * x - 1
)


# The next 7 palettes are from the Yorick scientific visalisation package,
# The next 7 palettes are from the Yorick scientific visualization package,
# an evolution of the GIST package, both by David H. Munro.
# They are released under a BSD-like license (see LICENSE_YORICK in
# the license directory of the matplotlib source distribution).
Expand Down
24 changes: 12 additions & 12 deletions 24 lib/matplotlib/_constrained_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
# - axes + pos for the axes (i.e. the total area taken by axis and
# the actual "position" argument that needs to be sent to
# ax.set_position.)
# - The axes layout box will also encomapss the legend, and that is
# how legends get included (axes legeneds, not figure legends)
# - colorbars are sibblings of the axes if they are single-axes
# - The axes layout box will also encompass the legend, and that is
# how legends get included (axes legends, not figure legends)
# - colorbars are siblings of the axes if they are single-axes
# colorbars
# OR:
# - a gridspec can be inside a subplotspec.
Expand All @@ -40,7 +40,7 @@
# colorbars.
# - suptitle:
# - right now suptitles are just stacked atop everything else in figure.
# Could imagine suptitles being gridspec suptitles, but not implimented
# Could imagine suptitles being gridspec suptitles, but not implemented
#
# Todo: AnchoredOffsetbox connected to gridspecs or axes. This would
# be more general way to add extra-axes annotations.
Expand Down Expand Up @@ -118,9 +118,9 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
the axes (decorations) like the title, ticklabels, x-labels, etc. This
can include legends who overspill the axes boundaries.
4. Constrain gridspec elements to line up:
a) if colnum0 neq colnumC, the two subplotspecs are stacked next to
a) if colnum0 != colnumC, the two subplotspecs are stacked next to
each other, with the appropriate order.
b) if colnum0 == columnC line up the left or right side of the
b) if colnum0 == colnumC, line up the left or right side of the
_poslayoutbox (depending if it is the min or max num that is equal).
c) do the same for rows...
5. The above doesn't constrain relative sizes of the _poslayoutboxes at
Expand Down Expand Up @@ -164,7 +164,7 @@ def do_constrained_layout(fig, renderer, h_pad, w_pad,
_make_ghost_gridspec_slots(fig, gs)

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

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

def layoutcolorbarsingle(ax, cax, shrink, aspect, location, pad=0.05):
"""
Do the layout for a colorbar, to not oeverly pollute colorbar.py
Do the layout for a colorbar, to not overly pollute colorbar.py

`pad` is in fraction of the original axis size.
"""
Expand Down Expand Up @@ -601,7 +601,7 @@ def _getmaxminrowcolumn(axs):

def layoutcolorbargridspec(parents, cax, shrink, aspect, location, pad=0.05):
"""
Do the layout for a colorbar, to not oeverly pollute colorbar.py
Do the layout for a colorbar, to not overly pollute colorbar.py

`pad` is in fraction of the original axis size.
"""
Expand Down
4 changes: 2 additions & 2 deletions 4 lib/matplotlib/_layoutbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, parent=None, name='', tightwidth=False,
self.min_height = Variable(str(sn + 'min_height'))
self.pref_width = Variable(str(sn + 'pref_width'))
self.pref_height = Variable(str(sn + 'pref_height'))
# margis are only used for axes-position layout boxes. maybe should
# margins are only used for axes-position layout boxes. maybe should
# be a separate subclass:
self.left_margin = Variable(str(sn + 'left_margin'))
self.right_margin = Variable(str(sn + 'right_margin'))
Expand Down Expand Up @@ -117,7 +117,7 @@ def constrain_margins(self):
margin between the position of the axes and the outer edge of
the axes.

Margins are variable because they change with the fogure size.
Margins are variable because they change with the figure size.

Margin minimums are set to make room for axes decorations. However,
the margins can be larger if we are mathicng the position size to
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

# Other potential writing methods:
# * http://pymedia.org/
# * libmng (produces swf) python wrappers: https://github.com/libming/libming
# * libming (produces swf) python wrappers: https://github.com/libming/libming
# * Wrap x264 API:

# (http://stackoverflow.com/questions/2940671/
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ def getp(obj, property=None):
getp(obj, 'linestyle') # get the linestyle property

*obj* is a :class:`Artist` instance, e.g.,
:class:`~matplotllib.lines.Line2D` or an instance of a
:class:`~matplotlib.lines.Line2D` or an instance of a
:class:`~matplotlib.axes.Axes` or :class:`matplotlib.text.Text`.
If the *property* is 'somename', this function returns

Expand Down
14 changes: 7 additions & 7 deletions 14 lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ def _convert_dx(dx, x0, xconv, convert):
dx = dx[0]
except (ValueError, TypeError, AttributeError):
# if the above fails (for any reason) just fallback to what
# we do by default and convert dx by iteslf.
# we do by default and convert dx by itself.
dx = convert(dx)
return dx

Expand Down Expand Up @@ -3536,7 +3536,7 @@ def _update_dict(dictionary, rc_name, properties):
rcParams[rc_str.format(rc_name, prop_dict)])
return dictionary

# Common property dictionnaries loading from rc
# Common property dicts loading from rc.
flier_props = ['color', 'marker', 'markerfacecolor', 'markeredgecolor',
'markersize', 'linestyle', 'linewidth']
default_props = ['color', 'linewidth', 'linestyle']
Expand Down Expand Up @@ -4261,7 +4261,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,

- 'face': The edge color will always be the same as the face color.
- 'none': No patch boundary will be drawn.
- A matplotib color or sequence of color.
- A Matplotlib color or sequence of color.

Defaults to ``None``, in which case it takes the value of
:rc:`scatter.edgecolors` = 'face'.
Expand Down Expand Up @@ -5253,7 +5253,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
By default, the nodes of the polygon defining the filled region
will only be placed at the positions in the *y* array. Such a
polygon cannot describe the above semantics close to the
intersection. The y-sections containing the intersecion are
intersection. The y-sections containing the intersection are
simply clipped.

Setting *interpolate* to *True* will calculate the actual
Expand Down Expand Up @@ -5594,7 +5594,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
def _pcolorargs(funcname, *args, allmatch=False):
# If allmatch is True, then the incoming X, Y, C must have matching
# dimensions, taking into account that X and Y can be 1-D rather than
# 2-D. This perfect match is required for Gouroud shading. For flat
# 2-D. This perfect match is required for Gouraud shading. For flat
# shading, X and Y specify boundaries, so we need one more boundary
# than color in each direction. For convenience, and consistent with
# Matlab, we discard the last row and/or column of C if necessary to
Expand Down Expand Up @@ -6145,7 +6145,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
quadilaterals. There are different ways to do this:

- Use tuples ``X=(xmin, xmax)`` and ``Y=(ymin, ymax)`` to define
a *uniform rectiangular grid*.
a *uniform rectangular grid*.

The tuples define the outer edges of the grid. All individual
quadrilaterals will be of the same size. This is the fastest
Expand Down Expand Up @@ -7975,7 +7975,7 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
automatically set to match the positions.

vert : bool, default = True.
If true, plots the violins veritcally.
If true, plots the violins vertically.
Otherwise, plots the violins horizontally.

widths : array-like, default = 0.5
Expand Down
7 changes: 3 additions & 4 deletions 7 lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2517,12 +2517,11 @@ def _update_title_position(self, renderer):
y = self.transAxes.inverted().transform(
(0., top))[1]
title.set_position((x, y))
# emperically, this doesn't always get the min to top,
# empirically, this doesn't always get the min to top,
# so we need to adjust again.
if title.get_window_extent(renderer).ymin < top:
y = self.transAxes.inverted().transform(
(0., 2 * top -
title.get_window_extent(renderer).ymin))[1]
_, y = self.transAxes.inverted().transform(
(0., 2 * top - title.get_window_extent(renderer).ymin))
title.set_position((x, y))
ymax = max(y, ymax)
for title in titles:
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/backends/_backend_tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _update_pointer_position(self, guiEvent=None):
#
# 3) process it as a motion notify event. This also has pros
# and cons. The mouse is moving relative to the window, but
# this may surpise an event handler writer who is getting
# this may surprise an event handler writer who is getting
# motion_notify_events even if the mouse has not moved

# here are the three scenarios
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/backends/backend_agg.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def restore_region(self, region, bbox=None, xy=None):
"""
Restore the saved region. If bbox (instance of BboxBase, or
its extents) is given, only the region specified by the bbox
will be restored. *xy* (a tuple of two floasts) optionally
will be restored. *xy* (a pair of floats) optionally
specifies the new position (the LLC of the original region,
not the LLC of the bbox) where the region will be restored.

Expand Down
9 changes: 4 additions & 5 deletions 9 lib/matplotlib/backends/backend_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ def get_char_width(charcode):

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

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

if gc._forced_alpha:
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/matplotlib/backends/backend_pgf.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def __del__(self):

def get_width_height_descent(self, text, prop):
"""
Get the width, total height and descent for a text typesetted by the
Get the width, total height and descent for a text typeset by the
current LaTeX environment.
"""

Expand Down
6 changes: 3 additions & 3 deletions 6 lib/matplotlib/backends/backend_ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def afmfontd(self, _cache=cbook.maxdict(50)):
_use_afm_rc_name = "ps.useafm"

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

def _draw_ps(self, ps, gc, rgbFace, fill=True, stroke=True, command=None):
"""
Emit the PostScript sniplet 'ps' with all the attributes from 'gc'
Emit the PostScript snippet 'ps' with all the attributes from 'gc'
applied. 'ps' must consist of PostScript commands to construct a path.

The fill and/or stroke kwargs can be set to False if the
Expand Down Expand Up @@ -1417,7 +1417,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False):

def get_bbox_header(lbrt, rotated=False):
"""
return a postscript header stringfor the given bbox lbrt=(l, b, r, t).
return a postscript header string for the given bbox lbrt=(l, b, r, t).
Optionally, return rotate command.
"""

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.