mpl_toolkits.mplot3d.axes3d.Axes3D.bar3d
- Axes3D.bar3d(x, y, z, dx, dy, dz, color=None, zsort='average', shade=True, lightsource=None, *, , ,
Generate a 3D barplot.
This method creates three-dimensional barplot where the width, depth, height, and color of the bars can all be uniquely set.
The coordinates of the anchor point of the bars.
The width, depth, and height of the bars, respectively.
The color of the bars can be specified globally or individually. This parameter can be:
A single color, to color all bars the same color.
An array of colors of length N bars, to color each bar independently.
An array of colors of length 6, to color the faces of the bars similarly.
An array of colors of length 6 * N bars, to color each face independently.
When coloring the faces of the boxes specifically, this is the order of the coloring:
-Z (bottom of box)
+Z (top of box)
-Y
+Y
-X
+X
The z-axis sorting scheme passed onto Poly3DCollection
When true, this shades the dark sides of the bars (relative to the plot's source of light).
LightSource, optionalThe lightsource to use when shade is True.
Whether to hide the bars with points outside the axes view limits.
If given, all parameters also accept a string s, which is
interpreted as data[s] if s is a key in data.
Any additional keyword arguments are passed onto
Poly3DCollection.
Poly3DCollectionA collection of three-dimensional polygons representing the bars.
mpl_toolkits.mplot3d.axes3d.Axes3D.bar3d