@@ -80,7 +80,7 @@ def __init__(self, axes, spine_type, path, **kwargs):
8080 self ._patch_transform = mtransforms .IdentityTransform ()
8181
8282 def set_smart_bounds (self , value ):
83- """set the spine and associated axis to have smart bounds"""
83+ """Set the spine and associated axis to have smart bounds. """
8484 self ._smart_bounds = value
8585
8686 # also set the axis if possible
@@ -91,11 +91,11 @@ def set_smart_bounds(self, value):
9191 self .stale = True
9292
9393 def get_smart_bounds (self ):
94- """get whether the spine has smart bounds"""
94+ """Return whether the spine has smart bounds. """
9595 return self ._smart_bounds
9696
9797 def set_patch_arc (self , center , radius , theta1 , theta2 ):
98- """set the spine to be arc-like"""
98+ """Set the spine to be arc-like. """
9999 self ._patch_type = 'arc'
100100 self ._center = center
101101 self ._width = radius * 2
@@ -108,7 +108,7 @@ def set_patch_arc(self, center, radius, theta1, theta2):
108108 self .stale = True
109109
110110 def set_patch_circle (self , center , radius ):
111- """set the spine to be circular"""
111+ """Set the spine to be circular. """
112112 self ._patch_type = 'circle'
113113 self ._center = center
114114 self ._width = radius * 2
@@ -118,7 +118,7 @@ def set_patch_circle(self, center, radius):
118118 self .stale = True
119119
120120 def set_patch_line (self ):
121- """set the spine to be linear"""
121+ """Set the spine to be linear. """
122122 self ._patch_type = 'line'
123123 self .stale = True
124124
@@ -213,7 +213,7 @@ def _ensure_position_is_set(self):
213213 self .set_position (self ._position )
214214
215215 def register_axis (self , axis ):
216- """register an axis
216+ """Register an axis.
217217
218218 An axis should be registered with its corresponding spine from
219219 the Axes instance. This allows the spine to clear any axis
@@ -225,14 +225,14 @@ def register_axis(self, axis):
225225 self .stale = True
226226
227227 def cla (self ):
228- """Clear the current spine"""
228+ """Clear the current spine. """
229229 self ._position = None # clear position
230230 if self .axis is not None :
231231 self .axis .cla ()
232232
233233 @cbook .deprecated ("3.1" )
234234 def is_frame_like (self ):
235- """return True if directly on axes frame
235+ """Return True if directly on axes frame.
236236
237237 This is useful for determining if a spine is the edge of an
238238 old style MPL plot. If so, this function will return True.
@@ -253,7 +253,7 @@ def is_frame_like(self):
253253 return False
254254
255255 def _adjust_location (self ):
256- """automatically set spine bounds to the view interval"""
256+ """Automatically set spine bounds to the view interval. """
257257
258258 if self .spine_type == 'circle' :
259259 return
@@ -368,7 +368,7 @@ def draw(self, renderer):
368368 return ret
369369
370370 def _calc_offset_transform (self ):
371- """calculate the offset transform performed by the spine"""
371+ """Calculate the offset transform performed by the spine. """
372372 self ._ensure_position_is_set ()
373373 position = self ._position
374374 if isinstance (position , str ):
@@ -442,7 +442,7 @@ def _calc_offset_transform(self):
442442 mtransforms .IdentityTransform ())
443443
444444 def set_position (self , position ):
445- """set the position of the spine
445+ """Set the position of the spine.
446446
447447 Spine position is specified by a 2 tuple of (position type,
448448 amount). The position types are:
@@ -481,12 +481,12 @@ def set_position(self, position):
481481 self .stale = True
482482
483483 def get_position (self ):
484- """get the spine position"""
484+ """Return the spine position. """
485485 self ._ensure_position_is_set ()
486486 return self ._position
487487
488488 def get_spine_transform (self ):
489- """get the spine transform"""
489+ """Return the spine transform. """
490490 self ._ensure_position_is_set ()
491491 what , how = self ._spine_transform
492492
0 commit comments