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

Method set_3d_properties

lib/mpl_toolkits/mplot3d/art3d.py:195–214  ·  view source on GitHub ↗

Set the *z* position and direction of the text. 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 o

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

Source from the content-addressed store, hash-verified

193 self.stale = True
194
195 def set_3d_properties(self, z=0, zdir='z', axlim_clip=False):
196 """
197 Set the *z* position and direction of the text.
198
199 Parameters
200 ----------
201 z : float
202 The z-position in 3D space.
203 zdir : {'x', 'y', 'z', 3-tuple}
204 The direction of the text. Default: 'z'.
205 See `.get_dir_vector` for a description of the values.
206 axlim_clip : bool, default: False
207 Whether to hide text outside the axes view limits.
208
209 .. versionadded:: 3.10
210 """
211 self._z = z
212 self._dir_vec = get_dir_vector(zdir)
213 self._axlim_clip = axlim_clip
214 self.stale = True
215
216 @artist.allow_rasterization
217 def draw(self, renderer):

Callers 9

__init__Method · 0.95
text_2d_to_3dFunction · 0.45
line_2d_to_3dFunction · 0.45
set_3d_propertiesMethod · 0.45
patch_2d_to_3dFunction · 0.45
pathpatch_2d_to_3dFunction · 0.45
poly_collection_2d_to_3dFunction · 0.45

Calls 1

get_dir_vectorFunction · 0.85

Tested by 1