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)
| 243 | |
| 244 | |
| 245 | def 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 | |
| 265 | class Line3D(lines.Line2D): |
nothing calls this directly
no test coverage detected
searching dependent graphs…