mpl_toolkits.mplot3d.art3d.poly_collection_2d_to_3d#

mpl_toolkits.mplot3d.art3d.poly_collection_2d_to_3d(col, zs=0, zdir='z')[source]#

Convert a PolyCollection into a Poly3DCollection object.

Parameters:
zsfloat or array of floats

The location or locations to place the polygons in the collection along the zdir axis. Default: 0.

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

The axis in which to place the patches. Default: 'z'. See get_dir_vector for a description of the values.