#NEWLINE# def convert_points_to_box( points , color , alpha , window_adjust = 0 ) : #NEWLINE# #INDENT# upper_left_point = ( points [ : , 0 ] . min ( ) , points [ : , 1 ] . min ( ) ) #NEWLINE# width = ( points [ : , 0 ] . max ( ) - points [ : , 0 ] . min ( ) ) #NEWLINE# height = ( points [ : , 1 ] . max ( ) - points [ : , 1 ] . min ( ) ) #NEWLINE# return Rectangle ( upper_left_point , width , height , ec = color , fc = color , alpha = alpha )