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

Method set_3d_properties

lib/mpl_toolkits/mplot3d/art3d.py:294–317  ·  view source on GitHub ↗

Set the *z* position and direction of the line. Parameters ---------- zs : float or array of floats The location along the *zdir* axis in 3D space to position the line. zdir : {'x', 'y', 'z'} Plane to plot line orthogonal

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

Source from the content-addressed store, hash-verified

292 self._axlim_clip = axlim_clip
293
294 def set_3d_properties(self, zs=0, zdir='z', axlim_clip=False):
295 """
296 Set the *z* position and direction of the line.
297
298 Parameters
299 ----------
300 zs : float or array of floats
301 The location along the *zdir* axis in 3D space to position the
302 line.
303 zdir : {'x', 'y', 'z'}
304 Plane to plot line orthogonal to. Default: 'z'.
305 See `.get_dir_vector` for a description of the values.
306 axlim_clip : bool, default: False
307 Whether to hide lines with an endpoint outside the axes view limits.
308
309 .. versionadded:: 3.10
310 """
311 xs = self.get_xdata()
312 ys = self.get_ydata()
313 zs = cbook._to_unmasked_float_array(zs).ravel()
314 zs = np.broadcast_to(zs, len(xs))
315 self._verts3d = juggle_axes(xs, ys, zs, zdir)
316 self._axlim_clip = axlim_clip
317 self.stale = True
318
319 def set_data_3d(self, *args):
320 """

Callers

nothing calls this directly

Calls 3

juggle_axesFunction · 0.85
get_xdataMethod · 0.45
get_ydataMethod · 0.45

Tested by

no test coverage detected