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

Skip to content

Commit 9af6ba7

Browse files
authored
Merge pull request #24534 from meeseeksmachine/auto-backport-of-pr-24521-on-v3.6.x
Backport PR #24521 on branch v3.6.x (Doc: improve spelling and grammar)
2 parents 464b135 + 8cfb7d3 commit 9af6ba7

File tree

9 files changed

+27
-30
lines changed

9 files changed

+27
-30
lines changed

lib/mpl_toolkits/axes_grid1/anchored_artists.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, width, height, xdescent, ydescent,
3030
Location of this artist. Valid locations are
3131
'upper left', 'upper center', 'upper right',
3232
'center left', 'center', 'center right',
33-
'lower left', 'lower center, 'lower right'.
33+
'lower left', 'lower center', 'lower right'.
3434
For backward compatibility, numeric values are accepted as well.
3535
See the parameter *loc* of `.Legend` for details.
3636
pad : float, default: 0.4
@@ -88,7 +88,7 @@ def __init__(self, transform, loc,
8888
Location of this artist. Valid locations are
8989
'upper left', 'upper center', 'upper right',
9090
'center left', 'center', 'center right',
91-
'lower left', 'lower center, 'lower right'.
91+
'lower left', 'lower center', 'lower right'.
9292
For backward compatibility, numeric values are accepted as well.
9393
See the parameter *loc* of `.Legend` for details.
9494
pad : float, default: 0.4
@@ -144,7 +144,7 @@ def __init__(self, transform, width, height, angle, loc,
144144
Location of the ellipse. Valid locations are
145145
'upper left', 'upper center', 'upper right',
146146
'center left', 'center', 'center right',
147-
'lower left', 'lower center, 'lower right'.
147+
'lower left', 'lower center', 'lower right'.
148148
For backward compatibility, numeric values are accepted as well.
149149
See the parameter *loc* of `.Legend` for details.
150150
pad : float, default: 0.1
@@ -194,7 +194,7 @@ def __init__(self, transform, size, label, loc,
194194
Location of the size bar. Valid locations are
195195
'upper left', 'upper center', 'upper right',
196196
'center left', 'center', 'center right',
197-
'lower left', 'lower center, 'lower right'.
197+
'lower left', 'lower center', 'lower right'.
198198
For backward compatibility, numeric values are accepted as well.
199199
See the parameter *loc* of `.Legend` for details.
200200
pad : float, default: 0.1
@@ -314,7 +314,7 @@ def __init__(self, transform, label_x, label_y, length=0.15,
314314
Location of the arrow. Valid locations are
315315
'upper left', 'upper center', 'upper right',
316316
'center left', 'center', 'center right',
317-
'lower left', 'lower center, 'lower right'.
317+
'lower left', 'lower center', 'lower right'.
318318
For backward compatibility, numeric values are accepted as well.
319319
See the parameter *loc* of `.Legend` for details.
320320
angle : float, default: 0

lib/mpl_toolkits/axes_grid1/axes_divider.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ def locate(self, nx, ny, nx1=None, ny1=None, axes=None, renderer=None):
183183
Parameters
184184
----------
185185
nx, nx1 : int
186-
Integers specifying the column-position of the
187-
cell. When *nx1* is None, a single *nx*-th column is
188-
specified. Otherwise location of columns spanning between *nx*
189-
to *nx1* (but excluding *nx1*-th column) is specified.
186+
Integers specifying the column-position of the cell. When *nx1* is
187+
None, a single *nx*-th column is specified. Otherwise, the
188+
location of columns spanning between *nx* to *nx1* (but excluding
189+
*nx1*-th column) is specified.
190190
ny, ny1 : int
191191
Same as *nx* and *nx1*, but for row positions.
192192
axes
@@ -509,8 +509,8 @@ def append_axes(self, position, size, pad=None, add_to_figure=True, *,
509509
pad : :mod:`~mpl_toolkits.axes_grid1.axes_size` or float or str
510510
Padding between the axes. float or str arguments are interpreted
511511
as for *size*. Defaults to :rc:`figure.subplot.wspace` times the
512-
main axes width (left or right axes) or :rc:`figure.subplot.hspace`
513-
times the main axes height (bottom or top axes).
512+
main Axes width (left or right axes) or :rc:`figure.subplot.hspace`
513+
times the main Axes height (bottom or top axes).
514514
axes_class : subclass type of `~.axes.Axes`, optional
515515
The type of the new axes. Defaults to the type of the main axes.
516516
**kwargs

lib/mpl_toolkits/axes_grid1/axes_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Grid:
5353
"""
5454
A grid of Axes.
5555
56-
In Matplotlib, the axes location (and size) is specified in normalized
56+
In Matplotlib, the Axes location (and size) is specified in normalized
5757
figure coordinates. This may not be ideal for images that needs to be
5858
displayed with a given aspect ratio; for example, it is difficult to
5959
display multiple images of a same size with some fixed padding between

lib/mpl_toolkits/axes_grid1/axes_size.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Provides classes of simple units that will be used with AxesDivider
3-
class (or others) to determine the size of each axes. The unit
3+
class (or others) to determine the size of each Axes. The unit
44
classes define `get_size` method that returns a tuple of two floats,
55
meaning relative and absolute sizes, respectively.
66
@@ -207,7 +207,7 @@ def get_size(self, renderer):
207207
@_api.deprecated("3.6", alternative="size + pad")
208208
class Padded(_Base):
209209
"""
210-
Return a instance where the absolute part of *size* is
210+
Return an instance where the absolute part of *size* is
211211
increase by the amount of *pad*.
212212
"""
213213

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def inset_axes(parent_axes, width, height, loc='upper right',
349349
Location to place the inset axes. Valid locations are
350350
'upper left', 'upper center', 'upper right',
351351
'center left', 'center', 'center right',
352-
'lower left', 'lower center, 'lower right'.
352+
'lower left', 'lower center', 'lower right'.
353353
For backward compatibility, numeric values are accepted as well.
354354
See the parameter *loc* of `.Legend` for details.
355355
@@ -457,7 +457,7 @@ def zoomed_inset_axes(parent_axes, zoom, loc='upper right',
457457
Location to place the inset axes. Valid locations are
458458
'upper left', 'upper center', 'upper right',
459459
'center left', 'center', 'center right',
460-
'lower left', 'lower center, 'lower right'.
460+
'lower left', 'lower center', 'lower right'.
461461
For backward compatibility, numeric values are accepted as well.
462462
See the parameter *loc* of `.Legend` for details.
463463

lib/mpl_toolkits/axisartist/axisline_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class AxislineStyle(_Style):
7575
"""
7676
A container class which defines style classes for AxisArtists.
7777
78-
An instance of any axisline style class is an callable object,
78+
An instance of any axisline style class is a callable object,
7979
whose call signature is ::
8080
8181
__call__(self, axis_artist, path, transform)

lib/mpl_toolkits/axisartist/grid_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(self,
130130
tick_formatter2=None):
131131
"""
132132
transform : transform from the image coordinate (which will be
133-
the transData of the axes to the world coordinate.
133+
the transData of the axes to the world coordinate).
134134
135135
or transform = (transform_xy, inv_transform_xy)
136136

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,9 @@ def __init__(self, *args, zs=0, zdir='z', depthshade=True, **kwargs):
410410
:class:`~matplotlib.collections.PatchCollection`. In addition,
411411
keywords *zs=0* and *zdir='z'* are available.
412412
413-
Also, the keyword argument *depthshade* is available to
414-
indicate whether or not to shade the patches in order to
415-
give the appearance of depth (default is *True*).
416-
This is typically desired in scatter plots.
413+
Also, the keyword argument *depthshade* is available to indicate
414+
whether to shade the patches in order to give the appearance of depth
415+
(default is *True*). This is typically desired in scatter plots.
417416
"""
418417
self._depthshade = depthshade
419418
super().__init__(*args, **kwargs)
@@ -505,10 +504,9 @@ def __init__(self, *args, zs=0, zdir='z', depthshade=True, **kwargs):
505504
:class:`~matplotlib.collections.PathCollection`. In addition,
506505
keywords *zs=0* and *zdir='z'* are available.
507506
508-
Also, the keyword argument *depthshade* is available to
509-
indicate whether or not to shade the patches in order to
510-
give the appearance of depth (default is *True*).
511-
This is typically desired in scatter plots.
507+
Also, the keyword argument *depthshade* is available to indicate
508+
whether to shade the patches in order to give the appearance of depth
509+
(default is *True*). This is typically desired in scatter plots.
512510
"""
513511
self._depthshade = depthshade
514512
self._in_draw = False

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,7 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
22492249
"""
22502250
Generate a 3D barplot.
22512251
2252-
This method creates three dimensional barplot where the width,
2252+
This method creates three-dimensional barplot where the width,
22532253
depth, height, and color of the bars can all be uniquely set.
22542254
22552255
Parameters
@@ -2302,8 +2302,7 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
23022302
Returns
23032303
-------
23042304
collection : `~.art3d.Poly3DCollection`
2305-
A collection of three dimensional polygons representing
2306-
the bars.
2305+
A collection of three-dimensional polygons representing the bars.
23072306
"""
23082307

23092308
had_data = self.has_data()
@@ -2818,7 +2817,7 @@ def errorbar(self, x, y, z, zerr=None, yerr=None, xerr=None, fmt='',
28182817
The format for the data points / data lines. See `.plot` for
28192818
details.
28202819
2821-
Use 'none' (case insensitive) to plot errorbars without any data
2820+
Use 'none' (case-insensitive) to plot errorbars without any data
28222821
markers.
28232822
28242823
ecolor : color, default: None

0 commit comments

Comments
 (0)