MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / text_2d_to_3d

Function text_2d_to_3d

lib/mpl_toolkits/mplot3d/art3d.py:245–262  ·  view source on GitHub ↗

Convert a `.Text` to a `.Text3D` object. Parameters ---------- z : float 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_clip : bool, de

(obj, z=0, zdir='z', axlim_clip=False)

Source from the content-addressed store, hash-verified

243
244
245def text_2d_to_3d(obj, z=0, zdir='z', axlim_clip=False):
246 """
247 Convert a `.Text` to a `.Text3D` object.
248
249 Parameters
250 ----------
251 z : float
252 The z-position in 3D space.
253 zdir : {'x', 'y', 'z', 3-tuple}
254 The direction of the text. Default: 'z'.
255 See `.get_dir_vector` for a description of the values.
256 axlim_clip : bool, default: False
257 Whether to hide text outside the axes view limits.
258
259 .. versionadded:: 3.10
260 """
261 obj.__class__ = Text3D
262 obj.set_3d_properties(z, zdir, axlim_clip)
263
264
265class Line3D(lines.Line2D):

Callers

nothing calls this directly

Calls 1

set_3d_propertiesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…