mpl_toolkits.mplot3d.art3d.text_2d_to_3d#

mpl_toolkits.mplot3d.art3d.text_2d_to_3d(obj, z=0, zdir='z', axlim_clip=False)[source]#

Convert a Text to a Text3D object.

Parameters:
zfloat

The z-position in 3D space.

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

The direction of the text. Default: 'z'. See get_dir_vector for a description of the values.

axlim_clipbool, default: False

Whether to hide text outside the axes view limits.