@@ -98,7 +98,8 @@ def split_de_casteljau(beta, t):
9898@cbook ._rename_parameter ("3.1" , "tolerence" , "tolerance" )
9999def find_bezier_t_intersecting_with_closedpath (
100100 bezier_point_at_t , inside_closedpath , t0 = 0. , t1 = 1. , tolerance = 0.01 ):
101- """ Find a parameter t0 and t1 of the given bezier path which
101+ """
102+ Find a parameter t0 and t1 of the given bezier path which
102103 bounds the intersecting points with a provided closed
103104 path(*inside_closedpath*). Search starts from *t0* and *t1* and it
104105 uses a simple bisecting algorithm therefore one of the end point
@@ -223,8 +224,9 @@ def _f(r):
223224
224225@cbook ._rename_parameter ("3.1" , "tolerence" , "tolerance" )
225226def split_path_inout (path , inside , tolerance = 0.01 , reorder_inout = False ):
226- """ divide a path into two segment at the point where inside(x, y)
227- becomes False.
227+ """
228+ Divide a path into two segments at the point where ``inside(x, y)`` becomes
229+ False.
228230 """
229231
230232 path_iter = path .iter_segments ()
@@ -306,10 +308,9 @@ def get_cos_sin(x0, y0, x1, y1):
306308
307309@cbook ._rename_parameter ("3.1" , "tolerence" , "tolerance" )
308310def check_if_parallel (dx1 , dy1 , dx2 , dy2 , tolerance = 1.e-5 ):
309- """ returns
310- * 1 if two lines are parallel in same direction
311- * -1 if two lines are parallel in opposite direction
312- * 0 otherwise
311+ """
312+ Return 1 if two lines are parallel in same direction, -1 if two lines are
313+ parallel in opposite direction, 0 otherwise.
313314 """
314315 theta1 = np .arctan2 (dx1 , dy1 )
315316 theta2 = np .arctan2 (dx2 , dy2 )
0 commit comments