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

Skip to content

Commit 0a1a524

Browse files
committed
Merge pull request matplotlib#3650 from cbrueffer/misc
DOC : Typo fixes. Conflicts: lib/matplotlib/axis.py Conflicts due to pep8 work on master branch.
1 parent 4bfab3b commit 0a1a524

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def annotate(self, *args, **kwargs):
615615
position of the label `s`
616616
617617
xycoords : string, optional, default: "data"
618-
string that indicates what tye of coordinates `xy` is. Examples:
618+
string that indicates what type of coordinates `xy` is. Examples:
619619
"figure points", "figure pixels", "figure fraction", "axes
620620
points", .... See `matplotlib.text.Annotation` for more details.
621621

lib/matplotlib/axis.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,9 +2001,11 @@ def _get_offset_text(self):
20012001

20022002
def _get_pixel_distance_along_axis(self, where, perturb):
20032003
"""
2004-
Returns the amount, in data coordinates, that a single pixel corresponds to in the
2005-
locality given by "where", which is also given in data coordinates, and is an y coordinate.
2006-
"perturb" is the amount to perturb the pixel. Usually +0.5 or -0.5.
2004+
Returns the amount, in data coordinates, that a single pixel
2005+
corresponds to in the locality given by *where*, which is also given
2006+
in data coordinates, and is a y coordinate.
2007+
2008+
*perturb* is the amount to perturb the pixel. Usually +0.5 or -0.5.
20072009
20082010
Implementing this routine for an axis is optional; if present, it will ensure that no
20092011
ticks are lost due to round-off at the extreme ends of an axis.

lib/mpl_toolkits/axes_grid1/axes_divider.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
2-
The axes_divider module provide helper classes to adjust the positions of
3-
multiple axes at the drawing time.
2+
The axes_divider module provides helper classes to adjust the positions of
3+
multiple axes at drawing time.
44
5-
Divider: this is the class that is used calculates the axes
5+
Divider: this is the class that is used to calculate the axes
66
position. It divides the given rectangular area into several sub
77
rectangles. You initialize the divider by setting the horizontal
8-
and vertical list of sizes that the division will be based on. You
8+
and vertical lists of sizes that the division will be based on. You
99
then use the new_locator method, whose return value is a callable
1010
object that can be used to set the axes_locator of the axes.
1111
@@ -31,7 +31,7 @@ class Divider(object):
3131
horizontal and vertical lists of sizes
3232
(:mod:`mpl_toolkits.axes_grid.axes_size`) that the division will
3333
be based on. You then use the new_locator method to create a
34-
callable object that can be used to as the axes_locator of the
34+
callable object that can be used as the axes_locator of the
3535
axes.
3636
"""
3737

@@ -49,7 +49,7 @@ def __init__(self, fig, pos, horizontal, vertical,
4949
for vertical division
5050
:param aspect: if True, the overall rectangular area is reduced
5151
so that the relative part of the horizontal and
52-
vertical scales have same scale.
52+
vertical scales have the same scale.
5353
:param anchor: Determine how the reduced rectangle is placed
5454
when aspect is True.
5555
"""

0 commit comments

Comments
 (0)