On this page
mpl_toolkits.mplot3d.art3d.Text3D
class mpl_toolkits.mplot3d.art3d.Text3D(x=0, y=0, z=0, text='', zdir='z', **kwargs)[source]-
Bases:
matplotlib.text.TextText 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_vectorfor a description of the values.
Other Parameters: - **kwargs
-
All other parameters are passed on to
Text.
get_tightbbox(self, renderer)[source]-
Like
Artist.get_window_extent, but includes any clipping.Parameters: -
renderer : RendererBase instance -
renderer that will be used to draw the figures (i.e.
fig.canvas.get_renderer())
Returns: -
bbox : BBox -
The enclosing bounding box (in figure pixel co-ordinates).
-
set_3d_properties(self, z=0, zdir='z')[source]
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/mpl_toolkits.mplot3d.art3d.Text3D.html