@@ -138,7 +138,6 @@ def update_lim(self, axes):
138138
139139 grid_finder = self .grid_helper .grid_finder
140140
141- # e1, e2 = self._extremes # ranges of other coordinates
142141 if self .nth_coord == 0 :
143142 xx0 = np .linspace (self .value , self .value , self ._line_num_points )
144143 yy0 = np .linspace (extremes [2 ], extremes [3 ], self ._line_num_points )
@@ -270,21 +269,14 @@ def transform_xy(x, y):
270269 def f1 ():
271270 dd = np .arctan2 (yy1b - yy1a , xx1b - xx1a ) # angle normal
272271 dd2 = np .arctan2 (yy2b - yy2a , xx2b - xx2a ) # angle tangent
273- mm = (( yy1b - yy1a ) == 0. ) & (( xx1b - xx1a ) == 0. ) # mask where dd1 is not defined
272+ mm = (yy1b - yy1a == 0 ) & (xx1b - xx1a == 0 ) # mask where dd1 is not defined
274273 dd [mm ] = dd2 [mm ] + np .pi / 2
275- # dd = np.arctan2(yy2-yy1, xx2-xx1) # angle normal
276- # dd2 = np.arctan2(yy3-yy1, xx3-xx1) # angle tangent
277- # mm = ((yy2-yy1)==0.) & ((xx2-xx1)==0.) # mask where dd1 is not defined
278- # dd[mm] = dd2[mm] + np.pi / 2
279274
280- # dd += np.pi
281-
282- # dd = np.arctan2(xx2-xx1, angle_tangent-yy1)
283275 trans_tick = self .get_tick_transform (axes )
284276 tr2ax = trans_tick + axes .transAxes .inverted ()
285277 for x , y , d , d2 , lab in zip (xx1 , yy1 , dd , dd2 , labels ):
286278 c2 = tr2ax .transform_point ((x , y ))
287- delta = 0.00001
279+ delta = 0.00001
288280 if 0 - delta <= c2 [0 ] <= 1 + delta and 0 - delta <= c2 [1 ] <= 1 + delta :
289281 d1 , d2 = np .rad2deg ([d , d2 ])
290282 yield [x , y ], d1 , d2 , lab
0 commit comments