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

Function _paths_to_3d_segments

lib/mpl_toolkits/mplot3d/art3d.py:406–417  ·  view source on GitHub ↗

Convert paths from a collection object to 3D segments.

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

Source from the content-addressed store, hash-verified

404
405
406def _paths_to_3d_segments(paths, zs=0, zdir='z'):
407 """Convert paths from a collection object to 3D segments."""
408
409 if not np.iterable(zs):
410 zs = np.broadcast_to(zs, len(paths))
411 else:
412 if len(zs) != len(paths):
413 raise ValueError('Number of z-coordinates does not match paths.')
414
415 segs = [_path_to_3d_segment(path, pathz, zdir)
416 for path, pathz in zip(paths, zs)]
417 return segs
418
419
420def _path_to_3d_segment_with_codes(path, zs=0, zdir='z'):

Callers 1

line_collection_2d_to_3dFunction · 0.85

Calls 1

_path_to_3d_segmentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…