@@ -672,7 +672,7 @@ def __init__(self, xy, width, height, angle=0.0, **kwargs):
672
672
673
673
def get_path (self ):
674
674
"""
675
- Return the vertices of the rectangle
675
+ Return the vertices of the rectangle.
676
676
"""
677
677
return Path .unit_rectangle ()
678
678
@@ -696,9 +696,9 @@ def _update_y1(self):
696
696
self ._y1 = self ._y0 + self ._height
697
697
698
698
def _convert_units (self ):
699
- '''
700
- Convert bounds of the rectangle
701
- '''
699
+ """
700
+ Convert bounds of the rectangle.
701
+ """
702
702
x0 = self .convert_xunits (self ._x0 )
703
703
y0 = self .convert_yunits (self ._y0 )
704
704
x1 = self .convert_xunits (self ._x1 )
@@ -710,33 +710,33 @@ def get_patch_transform(self):
710
710
return self ._rect_transform
711
711
712
712
def get_x (self ):
713
- "Return the left coord of the rectangle"
713
+ "Return the left coord of the rectangle. "
714
714
return self ._x0
715
715
716
716
def get_y (self ):
717
- "Return the bottom coord of the rectangle"
717
+ "Return the bottom coord of the rectangle. "
718
718
return self ._y0
719
719
720
720
def get_xy (self ):
721
- "Return the left and bottom coords of the rectangle"
721
+ "Return the left and bottom coords of the rectangle. "
722
722
return self ._x0 , self ._y0
723
723
724
724
def get_width (self ):
725
- "Return the width of the rectangle"
725
+ "Return the width of the rectangle. "
726
726
return self ._width
727
727
728
728
def get_height (self ):
729
- "Return the height of the rectangle"
729
+ "Return the height of the rectangle. "
730
730
return self ._height
731
731
732
732
def set_x (self , x ):
733
- "Set the left coord of the rectangle"
733
+ "Set the left coord of the rectangle. "
734
734
self ._x0 = x
735
735
self ._update_x1 ()
736
736
self .stale = True
737
737
738
738
def set_y (self , y ):
739
- "Set the bottom coord of the rectangle"
739
+ "Set the bottom coord of the rectangle. "
740
740
self ._y0 = y
741
741
self ._update_y1 ()
742
742
self .stale = True
@@ -755,13 +755,13 @@ def set_xy(self, xy):
755
755
self .stale = True
756
756
757
757
def set_width (self , w ):
758
- "Set the width of the rectangle"
758
+ "Set the width of the rectangle. "
759
759
self ._width = w
760
760
self ._update_x1 ()
761
761
self .stale = True
762
762
763
763
def set_height (self , h ):
764
- "Set the height of the rectangle"
764
+ "Set the height of the rectangle. "
765
765
self ._height = h
766
766
self ._update_y1 ()
767
767
self .stale = True
0 commit comments