mpl_toolkits.mplot3d.axes3d.Axes3D.text#

Axes3D.text(x,y,z,s,zdir=None,*,axlim_clip=False,**kwargs)[source]#

Add the texts to the 3D Axes at locationx,y,z in data coordinates.

Parameters:
x, y, zfloat

The position to place the text.

sstr

The text.

zdir{'x', 'y', 'z', 3-tuple}, optional

The direction to be used as the z-direction. Default: 'z'.Seeget_dir_vector for a description of the values.

axlim_clipbool, default: False

Whether to hide text that is outside the axes view limits.

Added in version 3.10.

**kwargs

Other arguments are forwarded tomatplotlib.axes.Axes.text.

Returns:
Text3D

The createdText3D instance.

Examples usingmpl_toolkits.mplot3d.axes3d.Axes3D.text#

Text annotations in 3D

Text annotations in 3D