Spec-Zone.ru › Matplotlib

mpl_toolkits.mplot3d.axes3d.Axes3D.add_collection3d

Axes3D.add_collection3d(col, zs=0, zdir='z', autolim=True, *, axlim_clip=False)[source]

Add a 3D collection object to the plot.

2D collection types are converted to a 3D version by modifying the object and adding z coordinate information, zs and zdir.

Supported 2D collection types are:

  • PolyCollection
  • LineCollection
  • PatchCollection (currently not supporting autolim)
Parameters:
colCollection

A 2D collection object.

zsfloat or array-like, default: 0

The z-positions to be used for the 2D objects.

zdir{'x', 'y', 'z'}, default: 'z'

The direction to use for the z-positions.

autolimbool, default: True

Whether to update the data limits.

axlim_clipbool, default: False

Whether to hide the scatter points outside the axes view limits.

Added in version 3.10.

Examples using mpl_toolkits.mplot3d.axes3d.Axes3D.add_collection3d

Generate 3D polygons

Generate 3D polygons

© 2012–2026 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.add_collection3d.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API