def custom_box_style(x0, y0, width, height, mutation_size, mutation_aspect=1):
 mypad = 0.3
 pad = (mutation_size * mypad)
 (width, height) = ((width + (2.0 * pad)), (height + (2.0 * pad)))
 (x0, y0) = ((x0 - pad), (y0 - pad))
 (x1, y1) = ((x0 + width), (y0 + height))
 cp = [(x0, y0), (x1, y0), (x1, y1), (x0, y1), ((x0 - pad), ((y0 + y1) / 2.0)), (x0, y0), (x0, y0)]
 com = [Path.MOVETO, Path.LINETO, Path.LINETO, Path.LINETO, Path.LINETO, Path.LINETO, Path.CLOSEPOLY]
 path = Path(cp, com)
 return path

def custom_box_style ( x0 , y0 , width , height , mutation_size , mutation_aspect = 1 ) : mypad = 0.3 pad = ( mutation_size * mypad ) ( width , height ) = ( ( width + ( 2.0 * pad ) ) , ( height + ( 2.0 * pad ) ) ) ( x0 , y0 ) = ( ( x0 - pad ) , ( y0 - pad ) ) ( x1 , y1 ) = ( ( x0 + width ) , ( y0 + height ) ) cp = [ ( x0 , y0 ) , ( x1 , y0 ) , ( x1 , y1 ) , ( x0 , y1 ) , ( ( x0 - pad ) , ( ( y0 + y1 ) / 2.0 ) ) , ( x0 , y0 ) , ( x0 , y0 ) ] com = [ Path . MOVETO , Path . LINETO , Path . LINETO , Path . LINETO , Path . LINETO , Path . LINETO , Path . CLOSEPOLY ] path = Path ( cp , com ) return path
given the location and size of the box .