def get_patch_verts(patch):
 trans = patch.get_patch_transform()
 path = patch.get_path()
 polygons = path.to_polygons(trans)
 if len(polygons):
  return polygons[0]
 else:
  return []

def get_patch_verts ( patch ) : trans = patch . get_patch_transform ( ) path = patch . get_path ( ) polygons = path . to_polygons ( trans ) if len ( polygons ) : return polygons [ 0 ] else : return [ ]
return a list of vertices for the path of a patch .