def concatenate_paths(paths):
 vertices = []
 codes = []
 for p in paths:
  p = make_path_regular(p)
  vertices.append(p.vertices)
  codes.append(p.codes)
 _path = Path(np.concatenate(vertices), np.concatenate(codes))
 return _path

def concatenate_paths ( paths ) : vertices = [ ] codes = [ ] for p in paths : p = make_path_regular ( p ) vertices . append ( p . vertices ) codes . append ( p . codes ) _path = Path ( np . concatenate ( vertices ) , np . concatenate ( codes ) ) return _path
concatenate list of paths into a single path .