@@ -318,20 +318,18 @@ def _get_layout(self, renderer):
318
318
319
319
# Find full vertical extent of font,
320
320
# including ascenders and descenders:
321
- tmp , lp_h , lp_bl = renderer .get_text_width_height_descent (
322
- 'lp' ,
323
- self ._fontproperties ,
324
- ismath = False )
321
+ tmp , lp_h , lp_bl = renderer .get_text_width_height_descent ('lp' ,
322
+ self ._fontproperties ,
323
+ ismath = False )
325
324
offsety = (lp_h - lp_bl ) * self ._linespacing
326
325
327
326
baseline = 0
328
327
for i , line in enumerate (lines ):
329
328
clean_line , ismath = self .is_math_text (line )
330
329
if clean_line :
331
- w , h , d = renderer .get_text_width_height_descent (
332
- clean_line ,
333
- self ._fontproperties ,
334
- ismath = ismath )
330
+ w , h , d = renderer .get_text_width_height_descent (clean_line ,
331
+ self ._fontproperties ,
332
+ ismath = ismath )
335
333
else :
336
334
w , h , d = 0 , 0 , 0
337
335
@@ -473,12 +471,12 @@ def set_bbox(self, rectprops):
473
471
bbox_transmuter = props .pop ("bbox_transmuter" , None )
474
472
475
473
self ._bbox_patch = FancyBboxPatch (
476
- (0. , 0. ),
477
- 1. , 1. ,
478
- boxstyle = boxstyle ,
479
- bbox_transmuter = bbox_transmuter ,
480
- transform = mtransforms .IdentityTransform (),
481
- ** props )
474
+ (0. , 0. ),
475
+ 1. , 1. ,
476
+ boxstyle = boxstyle ,
477
+ bbox_transmuter = bbox_transmuter ,
478
+ transform = mtransforms .IdentityTransform (),
479
+ ** props )
482
480
self ._bbox = None
483
481
else :
484
482
self ._bbox_patch = None
@@ -912,7 +910,7 @@ def get_window_extent(self, renderer=None, dpi=None):
912
910
the value used when saving the figure, then the value that
913
911
was used must be specified as the *dpi* argument.
914
912
'''
915
- # return _unit_box
913
+ #return _unit_box
916
914
if not self .get_visible ():
917
915
return Bbox .unit ()
918
916
if dpi is not None :
@@ -1323,7 +1321,7 @@ def __init__(self,
1323
1321
self ._dashpad = dashpad
1324
1322
self ._dashpush = dashpush
1325
1323
1326
- # self.set_bbox(dict(pad=0))
1324
+ #self.set_bbox(dict(pad=0))
1327
1325
1328
1326
def get_position (self ):
1329
1327
"Return the position of the text as a tuple (*x*, *y*)"
@@ -1763,7 +1761,7 @@ def _get_ref_xy(self, renderer):
1763
1761
if isinstance (self .xycoords , tuple ):
1764
1762
s1 , s2 = self .xycoords
1765
1763
if ((is_string_like (s1 ) and s1 .split ()[0 ] == "offset" ) or
1766
- (is_string_like (s2 ) and s2 .split ()[0 ] == "offset" )):
1764
+ (is_string_like (s2 ) and s2 .split ()[0 ] == "offset" )):
1767
1765
raise ValueError ("xycoords should not be an offset coordinate" )
1768
1766
x , y = self .xy
1769
1767
x1 , y1 = self ._get_xy (renderer , x , y , s1 )
@@ -1775,7 +1773,7 @@ def _get_ref_xy(self, renderer):
1775
1773
else :
1776
1774
x , y = self .xy
1777
1775
return self ._get_xy (renderer , x , y , self .xycoords )
1778
- # raise RuntimeError("must be defined by the derived class")
1776
+ #raise RuntimeError("must be defined by the derived class")
1779
1777
1780
1778
# def _get_bbox(self, renderer):
1781
1779
# if hasattr(bbox, "bounds"):
@@ -2079,7 +2077,7 @@ def _update_position_xytext(self, renderer, xy_pixel):
2079
2077
# Use FancyArrowPatch if self.arrowprops has "arrowstyle" key.
2080
2078
# Otherwise, fallback to YAArrow.
2081
2079
2082
- # if d.has_key("arrowstyle"):
2080
+ #if d.has_key("arrowstyle"):
2083
2081
if self .arrow_patch :
2084
2082
2085
2083
# adjust the starting point of the arrow relative to
0 commit comments