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

Method set_3d_properties

lib/mpl_toolkits/mplot3d/art3d.py:622–643  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

620 self.set_3d_properties(zs, zdir, axlim_clip)
621
622 def set_3d_properties(self, verts, zs=0, zdir='z', axlim_clip=False):
623 """
624 Set the *z* position and direction of the patch.
625
626 Parameters
627 ----------
628 verts :
629 zs : float
630 The location along the *zdir* axis in 3D space to position the
631 patch.
632 zdir : {'x', 'y', 'z'}
633 Plane to plot patch orthogonal to. Default: 'z'.
634 See `.get_dir_vector` for a description of the values.
635 axlim_clip : bool, default: False
636 Whether to hide patches with a vertex outside the axes view limits.
637
638 .. versionadded:: 3.10
639 """
640 zs = np.broadcast_to(zs, len(verts))
641 self._segment3d = [juggle_axes(x, y, z, zdir)
642 for ((x, y), z) in zip(verts, zs)]
643 self._axlim_clip = axlim_clip
644
645 def get_path(self):
646 # docstring inherited

Callers 1

__init__Method · 0.95

Calls 1

juggle_axesFunction · 0.85

Tested by

no test coverage detected