Skip to main content
Ctrl+K
You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Matplotlib 3.10.1+dfsg1 documentation - Home Matplotlib 3.10.1+dfsg1 documentation - Home
  • Plot types
  • User guide
  • Tutorials
  • Examples
  • Reference
  • Contribute
  • Releases
  • Gitter
  • Discourse
  • GitHub
  • Twitter
  • Plot types
  • User guide
  • Tutorials
  • Examples
  • Reference
  • Contribute
  • Releases
  • Gitter
  • Discourse
  • GitHub
  • Twitter

Section Navigation

  • matplotlib
  • matplotlib.animation
  • matplotlib.artist
  • matplotlib.axes
  • matplotlib.axis
  • matplotlib.backend_bases
  • matplotlib.backend_managers
  • matplotlib.backend_tools
  • matplotlib.backends
  • matplotlib.bezier
  • matplotlib.category
  • matplotlib.cbook
  • matplotlib.cm
  • matplotlib.collections
  • matplotlib.colorbar
  • matplotlib.colorizer
  • matplotlib.colors
  • matplotlib.container
  • matplotlib.contour
  • matplotlib.dates
  • matplotlib.dviread
  • matplotlib.figure
  • matplotlib.font_manager
  • matplotlib.ft2font
  • matplotlib.gridspec
  • matplotlib.hatch
  • matplotlib.image
  • matplotlib.inset
  • matplotlib.layout_engine
  • matplotlib.legend
  • matplotlib.legend_handler
  • matplotlib.lines
  • matplotlib.markers
  • matplotlib.mathtext
  • matplotlib.mlab
  • matplotlib.offsetbox
  • matplotlib.patches
  • matplotlib.path
  • matplotlib.patheffects
  • matplotlib.pyplot
  • matplotlib.projections
  • matplotlib.quiver
  • matplotlib.rcsetup
  • matplotlib.sankey
  • matplotlib.scale
  • matplotlib.sphinxext.mathmpl
  • matplotlib.sphinxext.plot_directive
  • matplotlib.sphinxext.figmpl_directive
  • matplotlib.sphinxext.roles
  • matplotlib.spines
  • matplotlib.style
  • matplotlib.table
  • matplotlib.testing
  • matplotlib.text
  • matplotlib.texmanager
  • matplotlib.ticker
  • matplotlib.transforms
  • matplotlib.tri
  • matplotlib.typing
  • matplotlib.units
  • matplotlib.widgets
  • matplotlib._afm
  • matplotlib._api
  • matplotlib._docstring
  • matplotlib._enums
  • matplotlib._type1font
  • matplotlib._tight_bbox
  • matplotlib._tight_layout
  • mpl_toolkits.mplot3d
    • mplot3d FAQ
    • mplot3d View Angles
    • mpl_toolkits.mplot3d.axes3d.Axes3D
    • mpl_toolkits.mplot3d.axis3d.Axis
    • mpl_toolkits.mplot3d.art3d.Line3D
    • mpl_toolkits.mplot3d.art3d.Line3DCollection
    • mpl_toolkits.mplot3d.art3d.Patch3D
    • mpl_toolkits.mplot3d.art3d.Patch3DCollection
    • mpl_toolkits.mplot3d.art3d.Path3DCollection
    • mpl_toolkits.mplot3d.art3d.PathPatch3D
    • mpl_toolkits.mplot3d.art3d.Poly3DCollection
    • mpl_toolkits.mplot3d.art3d.Text3D
    • mpl_toolkits.mplot3d.art3d.get_dir_vector
    • mpl_toolkits.mplot3d.art3d.juggle_axes
    • mpl_toolkits.mplot3d.art3d.line_2d_to_3d
    • mpl_toolkits.mplot3d.art3d.line_collection_2d_to_3d
    • mpl_toolkits.mplot3d.art3d.patch_2d_to_3d
    • mpl_toolkits.mplot3d.art3d.patch_collection_2d_to_3d
    • mpl_toolkits.mplot3d.art3d.pathpatch_2d_to_3d
    • mpl_toolkits.mplot3d.art3d.poly_collection_2d_to_3d
    • mpl_toolkits.mplot3d.art3d.rotate_axes
    • mpl_toolkits.mplot3d.art3d.text_2d_to_3d
    • mpl_toolkits.mplot3d.proj3d.inv_transform
    • mpl_toolkits.mplot3d.proj3d.proj_transform
    • mpl_toolkits.mplot3d.proj3d.proj_transform_clip
    • mpl_toolkits.mplot3d.proj3d.world_transformation
  • mpl_toolkits.axes_grid1
  • mpl_toolkits.axisartist
  • pylab
  • API Reference
  • mpl_toolkits.mplot3d
  • mpl_toolkits.mplot3d.art3d.pathpatch_2d_to_3d

mpl_toolkits.mplot3d.art3d.pathpatch_2d_to_3d#

mpl_toolkits.mplot3d.art3d.pathpatch_2d_to_3d(pathpatch, z=0, zdir='z')[source]#

Convert a PathPatch to a PathPatch3D object.

Examples using mpl_toolkits.mplot3d.art3d.pathpatch_2d_to_3d#

Draw flat objects in 3D plot

Draw flat objects in 3D plot
On this page
  • pathpatch_2d_to_3d()
  • Examples using mpl_toolkits.mplot3d.art3d.pathpatch_2d_to_3d

© Copyright 2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012–2025 The Matplotlib development team.

Created using Sphinx 8.1.3.

Built from 3.10.1+dfsg1.

Built with the PyData Sphinx Theme 0.16.1.