@@ -280,7 +280,7 @@ def contains(self, mouseevent):
280
280
281
281
def _get_xy_display (self ):
282
282
'get the (possibly unit converted) transformed x, y in display coords'
283
- x , y = self ._get_unitless_position ()
283
+ x , y = self .get_unitless_position ()
284
284
return self .get_transform ().transform_point ((x , y ))
285
285
286
286
def _get_multialignment (self ):
@@ -536,7 +536,7 @@ def update_bbox_position_size(self, renderer):
536
536
537
537
trans = self .get_transform ()
538
538
539
- # don't use self._get_unitless_position here, which refers to text
539
+ # don't use self.get_unitless_position here, which refers to text
540
540
# position in Text, and dash position in TextWithDash:
541
541
posx = float (self .convert_xunits (self ._x ))
542
542
posy = float (self .convert_yunits (self ._y ))
@@ -877,7 +877,7 @@ def get_horizontalalignment(self):
877
877
"""
878
878
return self ._horizontalalignment
879
879
880
- def _get_unitless_position (self ):
880
+ def get_unitless_position (self ):
881
881
"Return the unitless position of the text as a tuple (*x*, *y*)"
882
882
# This will get the position with all unit information stripped away.
883
883
# This is here for convienience since it is done in several locations.
@@ -899,7 +899,7 @@ def get_prop_tup(self):
899
899
want to cache derived information about text (e.g., layouts) and
900
900
need to know if the text has changed.
901
901
"""
902
- x , y = self ._get_unitless_position ()
902
+ x , y = self .get_unitless_position ()
903
903
return (x , y , self .get_text (), self ._color ,
904
904
self ._verticalalignment , self ._horizontalalignment ,
905
905
hash (self ._fontproperties ),
@@ -958,7 +958,7 @@ def get_window_extent(self, renderer=None, dpi=None):
958
958
raise RuntimeError ('Cannot get window extent w/o renderer' )
959
959
960
960
bbox , info , descent = self ._get_layout (self ._renderer )
961
- x , y = self ._get_unitless_position ()
961
+ x , y = self .get_unitless_position ()
962
962
x , y = self .get_transform ().transform_point ((x , y ))
963
963
bbox = bbox .translated (x , y )
964
964
if dpi is not None :
@@ -1373,7 +1373,7 @@ def __init__(self,
1373
1373
1374
1374
#self.set_bbox(dict(pad=0))
1375
1375
1376
- def _get_unitless_position (self ):
1376
+ def get_unitless_position (self ):
1377
1377
"Return the unitless position of the text as a tuple (*x*, *y*)"
1378
1378
# This will get the position with all unit information stripped away.
1379
1379
# This is here for convienience since it is done in several locations.
@@ -1418,7 +1418,7 @@ def update_coords(self, renderer):
1418
1418
with respect to the actual canvas's coordinates we need to map
1419
1419
back and forth.
1420
1420
"""
1421
- dashx , dashy = self ._get_unitless_position ()
1421
+ dashx , dashy = self .get_unitless_position ()
1422
1422
dashlength = self .get_dashlength ()
1423
1423
# Shortcircuit this process if we don't have a dash
1424
1424
if dashlength == 0.0 :
0 commit comments