@@ -2658,14 +2658,14 @@ class ConnectionStyle(_Style):
2658
2658
2659
2659
class _Base (object ):
2660
2660
"""
2661
- A base class for connectionstyle classes. The dervided needs
2662
- to implement a *connect* methods whose call signature is::
2661
+ A base class for connectionstyle classes. The subclass needs
2662
+ to implement a *connect* method whose call signature is::
2663
2663
2664
2664
connect(posA, posB)
2665
2665
2666
2666
where posA and posB are tuples of x, y coordinates to be
2667
- connected. The methods needs to return a path connecting two
2668
- points. This base class defines a __call__ method, and few
2667
+ connected. The method needs to return a path connecting two
2668
+ points. This base class defines a __call__ method, and a few
2669
2669
helper methods.
2670
2670
"""
2671
2671
@@ -2738,18 +2738,18 @@ def __call__(self, posA, posB,
2738
2738
shrinkA = 2. , shrinkB = 2. , patchA = None , patchB = None ):
2739
2739
"""
2740
2740
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 .
2742
2742
"""
2743
2743
2744
2744
path = self .connect (posA , posB )
2745
2745
2746
2746
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 )
2748
2748
2749
- return shrinked_path
2749
+ return shrunk_path
2750
2750
2751
2751
def __reduce__ (self ):
2752
- # because we have decided to nest thes classes, we need to
2752
+ # because we have decided to nest these classes, we need to
2753
2753
# add some more information to allow instance pickling.
2754
2754
import matplotlib .cbook as cbook
2755
2755
return (cbook ._NestedClassGetter (),
@@ -2994,7 +2994,7 @@ def connect(self, posA, posB):
2994
2994
class Bar (_Base ):
2995
2995
"""
2996
2996
A line with *angle* between A and B with *armA* and
2997
- *armB*. One of the arm is extend so that they are connected in
2997
+ *armB*. One of the arms is extended so that they are connected in
2998
2998
a right angle. The length of armA is determined by (*armA*
2999
2999
+ *fraction* x AB distance). Same for armB.
3000
3000
"""
@@ -3119,14 +3119,14 @@ class ArrowStyle(_Style):
3119
3119
%(AvailableArrowstyles)s
3120
3120
3121
3121
3122
- An instance of any arrow style class is an callable object,
3122
+ An instance of any arrow style class is a callable object,
3123
3123
whose call signature is::
3124
3124
3125
3125
__call__(self, path, mutation_size, linewidth, aspect_ratio=1.)
3126
3126
3127
3127
and it returns a tuple of a :class:`Path` instance and a boolean
3128
- value. *path* is a :class:`Path` instance along witch the arrow
3129
- will be drawn. *mutation_size* and *aspect_ratio* has a same
3128
+ value. *path* is a :class:`Path` instance along which the arrow
3129
+ will be drawn. *mutation_size* and *aspect_ratio* have the same
3130
3130
meaning as in :class:`BoxStyle`. *linewidth* is a line width to be
3131
3131
stroked. This is meant to be used to correct the location of the
3132
3132
head so that it does not overshoot the destination point, but not all
@@ -3175,11 +3175,11 @@ def ensure_quadratic_bezier(path):
3175
3175
3176
3176
def transmute (self , path , mutation_size , linewidth ):
3177
3177
"""
3178
- The transmute method is a very core of the ArrowStyle
3178
+ The transmute method is the very core of the ArrowStyle
3179
3179
class and must be overriden in the subclasses. It receives
3180
3180
the path object along which the arrow will be drawn, and
3181
- the mutation_size, with which the amount arrow head and
3182
- etc. will be scaled. The linewidth may be used to adjust
3181
+ the mutation_size, with which the arrow head etc.
3182
+ will be scaled. The linewidth may be used to adjust
3183
3183
the path so that it does not pass beyond the given
3184
3184
points. It returns a tuple of a Path instance and a
3185
3185
boolean. The boolean value indicate whether the path can
@@ -3204,9 +3204,9 @@ def __call__(self, path, mutation_size, linewidth,
3204
3204
vertices , codes = path .vertices [:], path .codes [:]
3205
3205
# Squeeze the height
3206
3206
vertices [:, 1 ] = vertices [:, 1 ] / aspect_ratio
3207
- path_shrinked = Path (vertices , codes )
3207
+ path_shrunk = Path (vertices , codes )
3208
3208
# call transmute method with squeezed height.
3209
- path_mutated , fillable = self .transmute (path_shrinked ,
3209
+ path_mutated , fillable = self .transmute (path_shrunk ,
3210
3210
linewidth ,
3211
3211
mutation_size )
3212
3212
if cbook .iterable (fillable ):
@@ -3261,7 +3261,7 @@ def _get_arrow_wedge(self, x0, y0, x1, y1,
3261
3261
Return the paths for arrow heads. Since arrow lines are
3262
3262
drawn with capstyle=projected, The arrow goes beyond the
3263
3263
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.
3265
3265
"""
3266
3266
3267
3267
# arrow from x0, y0 to x1, y1
@@ -3968,7 +3968,7 @@ def __init__(self, posA=None, posB=None,
3968
3968
"""
3969
3969
If *posA* and *posB* is given, a path connecting two point are
3970
3970
created according to the connectionstyle. The path will be
3971
- clipped with *patchA* and *patchB* and further shirnked by
3971
+ clipped with *patchA* and *patchB* and further shrunken by
3972
3972
*shrinkA* and *shrinkB*. An arrow is drawn along this
3973
3973
resulting path using the *arrowstyle* parameter. If *path*
3974
3974
provided, an arrow is drawn along this path and *patchA*,
@@ -4077,7 +4077,7 @@ def set_connectionstyle(self, connectionstyle, **kw):
4077
4077
4078
4078
*connectionstyle* can be a string with connectionstyle name with
4079
4079
optional comma-separated attributes. Alternatively, the attrs can be
4080
- probided as keywords.
4080
+ provided as keywords.
4081
4081
4082
4082
set_connectionstyle("arc,angleA=0,armA=30,rad=10")
4083
4083
set_connectionstyle("arc", angleA=0,armA=30,rad=10)
0 commit comments