mpl_toolkits.mplot3d.axes3d.Axes3D.add_collection3d#

Axes3D.add_collection3d(col, zs=0, zdir='z', autolim=True)[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:

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.