8000 More misc. typos · luzpaz/matplotlib@cf1b272 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf1b272

Browse files
committed
More misc. typos
Follow-up to matplotlib#10261
1 parent 4753f6c commit cf1b272

Some content is hidden

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

49 files changed

+94
-94
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
8181
:data:`~matplotlib.rcParams`
8282
a global dictionary of default configuration settings. It is
83-
initialized by code which may be overridded by a matplotlibrc
83+
initialized by code which may be overridden by a matplotlibrc
8484
file.
8585
8686
:func:`~matplotlib.rc`
@@ -775,7 +775,7 @@ def get_py2exe_datafiles():
775775
d = {}
776776
for root, _, files in os.walk(datapath):
777777
# Need to explicitly remove cocoa_agg files or py2exe complains
778-
# NOTE I dont know why, but do as previous version
778+
# NOTE I don't know why, but do as previous version
779779
if 'Matplotlib.nib' in files:
780780
files.remove('Matplotlib.nib')
781781
files = [os.path.join(root, filename) for filename in files]
@@ -1147,7 +1147,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True):
11471147
if not os.path.isabs(rcParams['examples.directory']):
11481148
_basedir, _fname = os.path.split(matplotlib_fname())
11491149
# Sometimes matplotlib_fname() can return relative paths,
1150-
# Also, using realpath() guarentees that Sphinx will use
1150+
# Also, using realpath() guarantees that Sphinx will use
11511151
# the same path that matplotlib sees (in case of weird symlinks).
11521152
_basedir = os.path.realpath(_basedir)
11531153
_fullpath = os.path.join(_basedir, rcParams['examples.directory'])

lib/matplotlib/artist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ def aliased_name_rest(self, s, target):
12451245

12461246
def pprint_setters(self, prop=None, leadingspace=2):
12471247
"""
1248-
If *prop* is *None*, return a list of strings of all settable properies
1248+
If *prop* is *None*, return a list of strings of all settable properties
12491249
and their valid values.
12501250
12511251
If *prop* is not *None*, it is a valid property name and that
@@ -1273,7 +1273,7 @@ def pprint_setters(self, prop=None, leadingspace=2):
12731273

12741274
def pprint_setters_rest(self, prop=None, leadingspace=2):
12751275
"""
1276-
If *prop* is *None*, return a list of strings of all settable properies
1276+
If *prop* is *None*, return a list of strings of all settable properties
12771277
and their valid values. Format the output for ReST
12781278
12791279
If *prop* is not *None*, it is a valid property name and that

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ def plot(self, *args, **kwargs):
13611361
13621362
By default, each line is assigned a different style specified by a
13631363
'style cycle'. The *fmt* and line property parameters are only
1364-
neccessary if you want explicit deviations from these defaults.
1364+
necessary if you want explicit deviations from these defaults.
13651365
Alternatively, you can also change the style cycle using the
13661366
'axes.prop_cycle' rcParam.
13671367
@@ -6279,7 +6279,7 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
62796279
The type of histogram to draw.
62806280
62816281
- 'bar' is a traditional bar-type histogram. If multiple data
6282-
are given the bars are aranged side by side.
6282+
are given the bars are arranged side by side.
62836283
62846284
- 'barstacked' is a bar-type histogram where multiple
62856285
data are stacked on top of each other.
@@ -6338,7 +6338,7 @@ def hist(self, x, bins=None, range=None, density=None, weights=None,
63386338
63396339
stacked : boolean, optional
63406340
If ``True``, multiple data are stacked on top of each other If
6341-
``False`` multiple data are aranged side by side if histtype is
6341+
``False`` multiple data are arranged side by side if histtype is
63426342
'bar' or on top of each other if histtype is 'step'
63436343
63446344
Default is ``False``

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,7 @@ def set_xscale(self, value, **kwargs):
31173117
31183118
See also
31193119
--------
3120-
matplotlib.scale.LinearScale : linear transfrom
3120+
matplotlib.scale.LinearScale : linear transform
31213121
31223122
matplotlib.scale.LogTransform : log transform
31233123
@@ -3442,7 +3442,7 @@ def set_yscale(self, value, **kwargs):
34423442
34433443
See also
34443444
--------
3445-
matplotlib.scale.LinearScale : linear transfrom
3445+
matplotlib.scale.LinearScale : linear transform
34463446
34473447
matplotlib.scale.LogTransform : log transform
34483448

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def set_label_coords(self, x, y, transform=None):
714714
coordinate of the y label is determined by the tick label
715715
bounding boxes, but this can lead to poor alignment of
716716
multiple ylabels if there are multiple axes. Ditto for the y
717-
coodinate of the x label.
717+
coordinate of the x label.
718718
719719
You can also specify the coordinate system of the label with
720720
the transform. If None, the default coordinate system will be

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2936,7 +2936,7 @@ def pan(self, *args):
29362936
self.set_message(self.mode)
29372937

29382938
def press(self, event):
2939-
"""Called whenver a mouse button is pressed."""
2939+
"""Called whenever a mouse button is pressed."""
29402940

29412941
def press_pan(self, event):
29422942
"""Callback for mouse button press in pan/zoom mode."""

lib/matplotlib/backend_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ToolBase(object):
5454
Keymap to associate with this tool
5555
5656
**String**: List of comma separated keys that will be used to call this
57-
tool when the keypress event of *self.figure.canvas* is emited
57+
tool when the keypress event of *self.figure.canvas* is emitted
5858
"""
5959

6060
description = None
@@ -154,7 +154,7 @@ class ToolToggleBase(ToolBase):
154154
``*args``
155155
Variable length argument to be used by the Tool
156156
``**kwargs``
157-
`toggled` if present and True, sets the initial state ot the Tool
157+
`toggled` if present and True, sets the initial state of the Tool
158158
Arbitrary keyword arguments to be consumed by the Tool
159159
"""
160160

@@ -228,7 +228,7 @@ def set_figure(self, figure):
228228
if figure:
229229
self.trigger(self, None)
230230
else:
231-
# if there is no figure, triggen wont change the internal state
231+
# if there is no figure, trigger wont change the internal state
232232
# we change it back
233233
self._toggled = True
234234

lib/matplotlib/backends/backend_gtk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def destroy(self, *args):
575575
def show(self):
576576
# show the figure window
577577
self.window.show()
578-
# raise the window above others and relase the "above lock"
578+
# raise the window above others and release the "above lock"
579579
self.window.set_keep_above(True)
580580
self.window.set_keep_above(False)
581581

lib/matplotlib/backends/backend_gtk3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def _get_toolbar(self):
441441
return toolbar
442442

443443
def _get_toolmanager(self):
444-
# must be initialised after toolbar has been setted
444+
# must be initialised after toolbar has been set
445445
if rcParams['toolbar'] == 'toolmanager':
446446
toolmanager = ToolManager(self.canvas.figure)
447447
else:

lib/matplotlib/backends/backend_ps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self):
5454
@property
5555
def gs_exe(self):
5656
"""
57-
excutable name of ghostscript.
57+
executable name of ghostscript.
5858
"""
5959
try:
6060
return self._cached["gs_exe"]
@@ -536,7 +536,7 @@ def draw_markers(
536536
ps_color = '%1.3f %1.3f %1.3f setrgbcolor' % rgbFace[:3]
537537

538538
# construct the generic marker command:
539-
ps_cmd = ['/o {', 'gsave', 'newpath', 'translate'] # dont want the translate to be global
539+
ps_cmd = ['/o {', 'gsave', 'newpath', 'translate'] # don't want the translate to be global
540540

541541
lw = gc.get_linewidth()
542542
stroke = lw != 0.0

0 commit comments

Comments
 (0)
0