Skip to content

Commit 51e9874

Browse files
committed
DOC: fix typos
1 parent ba373b8 commit 51e9874

File tree

13 files changed

+14
-14
lines changed

13 files changed

+14
-14
lines changed

examples/lines_bars_and_markers/fill.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _koch_snowflake_complex(order):
6262
plt.show()
6363

6464
###############################################################################
65-
# Use keyword arguments *facecolor* and *edgecolor* to modify the the colors
65+
# Use keyword arguments *facecolor* and *edgecolor* to modify the colors
6666
# of the polygon. Since the *linewidth* of the edge is 0 in the default
6767
# Matplotlib style, we have to set it as well for the edge to become visible.
6868

lib/matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def _get_config_or_cache_dir(xdg_base):
457457
@_logged_cached('CONFIGDIR=%s')
458458
def get_configdir():
459459
"""
460-
Return the string path of the the configuration directory.
460+
Return the string path of the configuration directory.
461461
462462
The directory is chosen as follows:
463463

lib/matplotlib/animation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ def _draw_frame(self, framedata):
17851785
except TypeError:
17861786
raise err from None
17871787

1788-
# check each item if is artist
1788+
# check each item if it's artist
17891789
for i in self._drawn_artists:
17901790
if not isinstance(i, mpl.artist.Artist):
17911791
raise err

lib/matplotlib/artist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ def getp(obj, property=None):
15781578
If *property* is 'somename', this function returns
15791579
``obj.get_somename()``.
15801580
1581-
If is is None (or unset), it *prints* all gettable properties from
1581+
If it's None (or unset), it *prints* all gettable properties from
15821582
*obj*. Many properties have aliases for shorter typing, e.g. 'lw' is
15831583
an alias for 'linewidth'. In the output, aliases and full property
15841584
names will be listed as:

lib/matplotlib/axis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ def set_default_intervals(self):
976976
# interface provides a hook for custom types to register
977977
# default limits through the AxisInfo.default_limits
978978
# attribute, and the derived code below will check for that
979-
# and use it if is available (else just use 0..1)
979+
# and use it if it's available (else just use 0..1)
980980

981981
def _set_artist_props(self, a):
982982
if a is None:

lib/matplotlib/backend_bases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ def _no_output_draw(figure):
15911591

15921592
def _is_non_interactive_terminal_ipython(ip):
15931593
"""
1594-
Return whether we are in a a terminal IPython, but non interactive.
1594+
Return whether we are in a terminal IPython, but non interactive.
15951595
15961596
When in _terminal_ IPython, ip.parent will have and `interact` attribute,
15971597
if this attribute is False we do not setup eventloop integration as the

lib/matplotlib/backend_managers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def remove_tool(self, name):
219219
tool = self.get_tool(name)
220220
tool.destroy()
221221

222-
# If is a toggle tool and toggled, untoggle
222+
# If it's a toggle tool and toggled, untoggle
223223
if getattr(tool, 'toggled', False):
224224
self.trigger_tool(tool, 'toolmanager')
225225

lib/matplotlib/backends/backend_wx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class RendererWx(RendererBase):
115115

116116
# wxPython allows for portable font styles, choosing them appropriately for
117117
# the target platform. Map some standard font names to the portable styles.
118-
# QUESTION: Is it be wise to agree standard fontnames across all backends?
118+
# QUESTION: Is it wise to agree to standard fontnames across all backends?
119119
fontnames = {
120120
'Sans': wx.FONTFAMILY_SWISS,
121121
'Roman': wx.FONTFAMILY_ROMAN,

lib/matplotlib/cbook/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ def violin_stats(X, method, points=100, quantiles=None):
14951495
# Want quantiles to be as the same shape as data sequences
14961496
if quantiles is not None and len(quantiles) != 0:
14971497
quantiles = _reshape_2D(quantiles, "quantiles")
1498-
# Else, mock quantiles if is none or empty
1498+
# Else, mock quantiles if it's none or empty
14991499
else:
15001500
quantiles = [[]] * len(X)
15011501

lib/matplotlib/colors.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ def __init__(self, vcenter, vmin=None, vmax=None):
12721272
Defaults to the min value of the dataset.
12731273
vmax : float, optional
12741274
The data value that defines ``1.0`` in the normalization.
1275-
Defaults to the the max value of the dataset.
1275+
Defaults to the max value of the dataset.
12761276
12771277
Examples
12781278
--------
@@ -1739,7 +1739,7 @@ def __call__(self, value, clip=None):
17391739
else:
17401740
max_col = self.Ncmap
17411741
# this gives us the bins in the lookup table in the range
1742-
# [0, _n_regions - 1] (the offset is baked in in the init)
1742+
# [0, _n_regions - 1] (the offset is baked in the init)
17431743
iret = np.digitize(xx, self.boundaries) - 1 + self._offset
17441744
# if we have more colors than regions, stretch the region
17451745
# index computed above to full range of the color bins. This

lib/matplotlib/mlab.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def _single_spectrum_helper(
506506
detrend : {'none', 'mean', 'linear'} or callable, default: 'none'
507507
The function applied to each segment before fft-ing, designed to remove
508508
the mean or linear trend. Unlike in MATLAB, where the *detrend* parameter
509-
is a vector, in Matplotlib is it a function. The :mod:`~matplotlib.mlab`
509+
is a vector, in Matplotlib it is a function. The :mod:`~matplotlib.mlab`
510510
module defines `.detrend_none`, `.detrend_mean`, and `.detrend_linear`,
511511
but you can use a custom function as well. You can also use a string to
512512
choose one of the functions: 'none' calls `.detrend_none`. 'mean' calls

lib/matplotlib/offsetbox.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
404404
Notes
405405
-----
406406
*pad* and *sep* are in points and will be scaled with the renderer
407-
dpi, while *width* and *height* are in in pixels.
407+
dpi, while *width* and *height* are in pixels.
408408
"""
409409
super().__init__()
410410
self.height = height

lib/matplotlib/patches.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ class Rectangle(Patch):
724724
: (xy)---- width -----+
725725
726726
One may picture *xy* as the bottom left corner, but which corner *xy* is
727-
actually depends on the the direction of the axis and the sign of *width*
727+
actually depends on the direction of the axis and the sign of *width*
728728
and *height*; e.g. *xy* would be the bottom right corner if the x-axis
729729
was inverted or if *width* was negative.
730730
"""

0 commit comments

Comments
 (0)