@@ -402,7 +402,7 @@ def calc_label_rot_and_inline(self, slc, ind, lw, lc=None, spacing=5):
402402 return rotation , nlc
403403
404404 def _get_label_text (self , x , y , rotation ):
405- dx , dy = self .ax .transData .inverted ().transform_point ((x , y ))
405+ dx , dy = self .ax .transData .inverted ().transform ((x , y ))
406406 t = text .Text (dx , dy , rotation = rotation ,
407407 horizontalalignment = 'center' ,
408408 verticalalignment = 'center' )
@@ -414,7 +414,7 @@ def _get_label_clabeltext(self, x, y, rotation):
414414 # class. This way, the rotation of the clabel is along the
415415 # contour line always.
416416 transDataInv = self .ax .transData .inverted ()
417- dx , dy = transDataInv .transform_point ((x , y ))
417+ dx , dy = transDataInv .transform ((x , y ))
418418 drotation = transDataInv .transform_angles (np .array ([rotation ]),
419419 np .array ([[x , y ]]))
420420 t = ClabelText (dx , dy , rotation = drotation [0 ],
@@ -480,7 +480,7 @@ def add_label_near(self, x, y, inline=True, inline_spacing=5,
480480 transform = self .ax .transData
481481
482482 if transform :
483- x , y = transform .transform_point ((x , y ))
483+ x , y = transform .transform ((x , y ))
484484
485485 # find the nearest contour _in screen units_
486486 conmin , segmin , imin , xmin , ymin = self .find_nearest_contour (
@@ -496,7 +496,7 @@ def add_label_near(self, x, y, inline=True, inline_spacing=5,
496496 # grab its vertices
497497 lc = active_path .vertices
498498 # sort out where the new vertex should be added data-units
499- xcmin = self .ax .transData .inverted ().transform_point ([xmin , ymin ])
499+ xcmin = self .ax .transData .inverted ().transform ([xmin , ymin ])
500500 # if there isn't a vertex close enough
501501 if not np .allclose (xcmin , lc [imin ]):
502502 # insert new data into the vertex list
0 commit comments