Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ebaa39a

Browse filesBrowse files
committed
Grammer of "shrink" variations
1 parent 7829262 commit ebaa39a
Copy full SHA for ebaa39a

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed

‎lib/matplotlib/patches.py

Copy file name to clipboardExpand all lines: lib/matplotlib/patches.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,15 +2738,15 @@ def __call__(self, posA, posB,
27382738
shrinkA=2., shrinkB=2., patchA=None, patchB=None):
27392739
"""
27402740
Calls the *connect* method to create a path between *posA*
2741-
and *posB*. The path is clipped and shrinked.
2741+
and *posB*. The path is clipped and shrunken.
27422742
"""
27432743

27442744
path = self.connect(posA, posB)
27452745

27462746
clipped_path = self._clip(path, patchA, patchB)
2747-
shrinked_path = self._shrink(clipped_path, shrinkA, shrinkB)
2747+
shrunk_path = self._shrink(clipped_path, shrinkA, shrinkB)
27482748

2749-
return shrinked_path
2749+
return shrunk_path
27502750

27512751
def __reduce__(self):
27522752
# because we have decided to nest these classes, we need to
@@ -3204,9 +3204,9 @@ def __call__(self, path, mutation_size, linewidth,
32043204
vertices, codes = path.vertices[:], path.codes[:]
32053205
# Squeeze the height
32063206
vertices[:, 1] = vertices[:, 1] / aspect_ratio
3207-
path_shrinked = Path(vertices, codes)
3207+
path_shrunk = Path(vertices, codes)
32083208
# call transmute method with squeezed height.
3209-
path_mutated, fillable = self.transmute(path_shrinked,
3209+
path_mutated, fillable = self.transmute(path_shrunk,
32103210
linewidth,
32113211
mutation_size)
32123212
if cbook.iterable(fillable):
@@ -3261,7 +3261,7 @@ def _get_arrow_wedge(self, x0, y0, x1, y1,
32613261
Return the paths for arrow heads. Since arrow lines are
32623262
drawn with capstyle=projected, The arrow goes beyond the
32633263
desired point. This method also returns the amount of the path
3264-
to be shrinked so that it does not overshoot.
3264+
to be shrunken so that it does not overshoot.
32653265
"""
32663266

32673267
# arrow from x0, y0 to x1, y1
@@ -3968,7 +3968,7 @@ def __init__(self, posA=None, posB=None,
39683968
"""
39693969
If *posA* and *posB* is given, a path connecting two point are
39703970
created according to the connectionstyle. The path will be
3971-
clipped with *patchA* and *patchB* and further shrinked by
3971+
clipped with *patchA* and *patchB* and further shrunken by
39723972
*shrinkA* and *shrinkB*. An arrow is drawn along this
39733973
resulting path using the *arrowstyle* parameter. If *path*
39743974
provided, an arrow is drawn along this path and *patchA*,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.