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

Function patch_2d_to_3d

lib/mpl_toolkits/mplot3d/art3d.py:740–744  ·  view source on GitHub ↗

Convert a `.Patch` to a `.Patch3D` object.

(patch, z=0, zdir='z', axlim_clip=False)

Source from the content-addressed store, hash-verified

738
739
740def patch_2d_to_3d(patch, z=0, zdir='z', axlim_clip=False):
741 """Convert a `.Patch` to a `.Patch3D` object."""
742 verts = _get_patch_verts(patch)
743 patch.__class__ = Patch3D
744 patch.set_3d_properties(verts, z, zdir, axlim_clip)
745
746
747def pathpatch_2d_to_3d(pathpatch, z=0, zdir='z'):

Callers

nothing calls this directly

Calls 2

_get_patch_vertsFunction · 0.85
set_3d_propertiesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…