mpl_toolkits.mplot3d.axes3d.Axes3D.bar#

Axes3D.bar(left,height,zs=0,zdir='z',*args,axlim_clip=False,data=None,**kwargs)[source]#

Add 2D bar(s).

Parameters:
left1D array-like

The x coordinates of the left sides of the bars.

height1D array-like

The height of the bars.

zsfloat or 1D array-like, default: 0

Z coordinate of bars; if a single value is specified, it will beused for all bars.

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

When plotting 2D data, the direction to use as z ('x', 'y' or 'z').

axlim_clipbool, default: False

Whether to hide bars with points outside the axes view limits.

Added in version 3.10.

dataindexable object, optional

If given, all parameters also accept a strings, which isinterpreted asdata[s] ifs is a key indata.

**kwargs

Other keyword arguments are forwarded tomatplotlib.axes.Axes.bar.

Returns:
mpl_toolkits.mplot3d.art3d.Patch3DCollection

Examples usingmpl_toolkits.mplot3d.axes3d.Axes3D.bar#

Create 2D bar graphs in different planes

Create 2D bar graphs in different planes