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 bymodifying the object and adding z coordinate information,zs andzdir.

Supported 2D collection types are:

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 usingmpl_toolkits.mplot3d.axes3d.Axes3D.add_collection3d#

Generate 3D polygons

Generate 3D polygons