You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. Apply now!
Version 2.2.2.post1705+gc85f8217d
matplotlib
Fork me on GitHub

mpl_toolkits.mplot3d.art3d.Text3D

class mpl_toolkits.mplot3d.art3d.Text3D(x=0, y=0, z=0, text='', zdir='z', **kwargs)[source]

Text object with 3D position and direction.

Parameters:
x, y, z

The position of the text.

text : str

The text string to display.

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

The direction of the text. See get_dir_vector for a description of the values.

Other Parameters:
**kwargs

All other parameters are passed on to Text.

draw(renderer)[source]

Draws the Text object to the given renderer.

set_3d_properties(z=0, zdir='z')[source]