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

Function line_collection_2d_to_3d

lib/mpl_toolkits/mplot3d/art3d.py:590–595  ·  view source on GitHub ↗

Convert a `.LineCollection` to a `.Line3DCollection` object.

(col, zs=0, zdir='z', axlim_clip=False)

Source from the content-addressed store, hash-verified

588
589
590def line_collection_2d_to_3d(col, zs=0, zdir='z', axlim_clip=False):
591 """Convert a `.LineCollection` to a `.Line3DCollection` object."""
592 segments3d = _paths_to_3d_segments(col.get_paths(), zs, zdir)
593 col.__class__ = Line3DCollection
594 col.set_segments(segments3d)
595 col._axlim_clip = axlim_clip
596
597
598class Patch3D(Patch):

Callers

nothing calls this directly

Calls 3

_paths_to_3d_segmentsFunction · 0.85
get_pathsMethod · 0.45
set_segmentsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…