MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _paths_to_3d_segments_with_codes

Function _paths_to_3d_segments_with_codes

lib/mpl_toolkits/mplot3d/art3d.py:435–447  ·  view source on GitHub ↗

Convert paths from a collection object to 3D segments with path codes.

(paths, zs=0, zdir='z')

Source from the content-addressed store, hash-verified

433
434
435def _paths_to_3d_segments_with_codes(paths, zs=0, zdir='z'):
436 """
437 Convert paths from a collection object to 3D segments with path codes.
438 """
439
440 zs = np.broadcast_to(zs, len(paths))
441 segments_codes = [_path_to_3d_segment_with_codes(path, pathz, zdir)
442 for path, pathz in zip(paths, zs)]
443 if segments_codes:
444 segments, codes = zip(*segments_codes)
445 else:
446 segments, codes = [], []
447 return list(segments), list(codes)
448
449
450class Collection3D(Collection):

Callers 1

poly_collection_2d_to_3dFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…