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)
| 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 |