Skip to content

Commit bc5d5b8

Browse files
authored
Merge pull request #20042 from luzpaz/typos-cont
DOC: fix typos
2 parents 2225813 + b183eae commit bc5d5b8

File tree

20 files changed

+23
-23
lines changed

20 files changed

+23
-23
lines changed

doc/api/prev_api_changes/api_changes_2.1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Previously they were clipped to a very small number and shown.
2020
Matplotlib uses instances of :obj:`~matplotlib.cbook.CallbackRegistry`
2121
as a bridge between user input event from the GUI and user callbacks.
2222
Previously, any exceptions raised in a user call back would bubble out
23-
of of the ``process`` method, which is typically in the GUI event
23+
of the ``process`` method, which is typically in the GUI event
2424
loop. Most GUI frameworks simple print the traceback to the screen
2525
and continue as there is not always a clear method of getting the
2626
exception back to the user. However PyQt5 now exits the process when

doc/api/prev_api_changes/api_changes_3.3.0/behaviour.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ most common operations remain available), and the list-of-one `.Polygon` is
262262
returned as is. This makes the `repr` of the returned artist more accurate: it
263263
is now ::
264264

265-
<BarContainer object of of 10 artists> # "bar", "barstacked"
265+
<BarContainer object of 10 artists> # "bar", "barstacked"
266266
[<matplotlib.patches.Polygon object at 0xdeadbeef>] # "step", "stepfilled"
267267

268268
instead of ::

doc/api/prev_api_changes/api_changes_3.3.0/deprecations.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Revert deprecation \*min, \*max keyword arguments to ``set_x/y/zlim_3d()``
7272
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7373
These keyword arguments were deprecated in 3.0, alongside with the respective
7474
parameters in ``set_xlim()`` / ``set_ylim()``. The deprecations of the 2D
75-
versions were already reverted in in 3.1.
75+
versions were already reverted in 3.1.
7676

7777
``cbook.local_over_kwdict``
7878
~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/devel/MEP/MEP22.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Defines the following attributes
144144
* messagelock: Lock to know if the message is available to write
145145

146146
Public methods for **User use**:
147-
* nav_connect(self, s, func): Connect to to navigation for events
147+
* nav_connect(self, s, func): Connect to navigation for events
148148
* nav_disconnect(self, cid): Disconnect from navigation event
149149
* message_event(self, message, sender=None): Emit a
150150
tool_message_event event

doc/users/prev_whats_new/changelog.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@ the `API changes <../../api/api_changes.html>`_.
22672267

22682268
Much of the drawing has been refactored in terms of
22692269
compound paths. Therefore, many methods have been removed
2270-
from the backend interface and replaced with a a handful to
2270+
from the backend interface and replaced with a handful to
22712271
draw compound paths. This will make updating the backends
22722272
easier, since there is less to update. It also should make
22732273
the backends more consistent in terms of functionality.

doc/users/prev_whats_new/github_stats_3.4.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ Pull Requests (772):
244244
* :ghpull:`19611`: Fix double picks.
245245
* :ghpull:`19640`: Backport PR #19639 on branch v3.4.x (FIX: do not allow single element list of str in subplot_mosaic)
246246
* :ghpull:`19639`: FIX: do not allow single element list of str in subplot_mosaic
247-
* :ghpull:`19638`: Backport PR #19632 on branch v3.4.x (Fix handling of warn keyword in in Figure.show.)
247+
* :ghpull:`19638`: Backport PR #19632 on branch v3.4.x (Fix handling of warn keyword in Figure.show.)
248248
* :ghpull:`19637`: Backport PR #19582 on branch v3.4.x (Add kerning to single-byte strings in PDFs)
249-
* :ghpull:`19632`: Fix handling of warn keyword in in Figure.show.
249+
* :ghpull:`19632`: Fix handling of warn keyword in Figure.show.
250250
* :ghpull:`19582`: Add kerning to single-byte strings in PDFs
251251
* :ghpull:`19629`: Backport PR #19548 on branch v3.4.x (Increase tolerances for other arches.)
252252
* :ghpull:`19630`: Backport PR #19596 on branch v3.4.x (Fix for issue 17769: wx interactive figure close cause crash)
@@ -1016,7 +1016,7 @@ Issues (204):
10161016
* :ghissue:`18648`: Drop support for directly imread()ing urls.
10171017
* :ghissue:`19366`: Current CI doc builds fail
10181018
* :ghissue:`19372`: matplotlib.axes.Axes.indicate_inset default label value is incompatible with LaTeX
1019-
* :ghissue:`17100`: Is it a better solution to acess one of the spines by class atrribute?
1019+
* :ghissue:`17100`: Is it a better solution to access one of the spines by class attribute?
10201020
* :ghissue:`17375`: Proposal: add_subfigs....
10211021
* :ghissue:`19339`: constrained_layout + fixed-aspect axes + bbox_inches="tight"
10221022
* :ghissue:`19308`: Reduce whitespace in Choosing Colormaps tutorial plots

doc/users/prev_whats_new/whats_new_1.5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ Add step kwargs to fill_between
368368

369369
Added ``step`` kwarg to `.Axes.fill_between` to allow to fill between
370370
lines drawn using the 'step' draw style. The values of ``step`` match
371-
those of the ``where`` kwarg of `.Axes.step`. The asymmetry of of the
371+
those of the ``where`` kwarg of `.Axes.step`. The asymmetry of the
372372
kwargs names is not ideal, but `.Axes.fill_between` already has a
373373
``where`` kwarg.
374374

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)