Version 2.2.2
matplotlib
Fork me on GitHub

mpl_toolkits.mplot3d.art3d.Poly3DCollection

class mpl_toolkits.mplot3d.art3d.Poly3DCollection(verts, *args, **kwargs)[source]

A collection of 3D polygons.

Create a Poly3DCollection.

verts should contain 3D coordinates.

Keyword arguments: zsort, see set_zsort for options.

Note that this class does a bit of magic with the _facecolors and _edgecolors properties.

do_3d_projection(renderer)[source]

Perform the 3D projection for this object.

draw(renderer)[source]

Derived classes drawing method

get_edgecolor()
get_edgecolors()[source]
get_facecolor()
get_facecolors()[source]
get_vector(segments3d)[source]

Optimize points for projection

set_3d_properties()[source]
set_alpha(alpha)[source]

Set the alpha tranparencies of the collection. alpha must be a float or None.

ACCEPTS: float or None

set_edgecolor(colors)[source]

Set the edgecolor(s) of the collection. c can be a matplotlib color spec (all patches have same color), or a sequence of specs; if it is a sequence the patches will cycle through the sequence.

If c is ‘face’, the edge color will always be the same as the face color. If it is ‘none’, the patch boundary will not be drawn.

ACCEPTS: matplotlib color spec or sequence of specs

set_edgecolors(colors)

Set the edgecolor(s) of the collection. c can be a matplotlib color spec (all patches have same color), or a sequence of specs; if it is a sequence the patches will cycle through the sequence.

If c is ‘face’, the edge color will always be the same as the face color. If it is ‘none’, the patch boundary will not be drawn.

ACCEPTS: matplotlib color spec or sequence of specs

set_facecolor(colors)[source]

Set the facecolor(s) of the collection. c can be a matplotlib color spec (all patches have same color), or a sequence of specs; if it is a sequence the patches will cycle through the sequence.

If c is ‘none’, the patch will not be filled.

ACCEPTS: matplotlib color spec or sequence of specs

set_facecolors(colors)

Set the facecolor(s) of the collection. c can be a matplotlib color spec (all patches have same color), or a sequence of specs; if it is a sequence the patches will cycle through the sequence.

If c is ‘none’, the patch will not be filled.

ACCEPTS: matplotlib color spec or sequence of specs

set_sort_zpos(val)[source]

Set the position to use for z-sorting.

set_verts(verts, closed=True)[source]

Set 3D vertices.

set_verts_and_codes(verts, codes)[source]

Sets 3D vertices with path codes

set_zsort(zsort)[source]
Set z-sorting behaviour:
boolean: if True use default ‘average’ string: ‘average’, ‘min’ or ‘max’