Create a collection of flat 3D paths with its normal vector pointed in *zdir* direction, and located at *zs* on the *zdir* axis. 'zs' can be a scalar or an array-like of the same length as the number of paths in the collection. Constructor arguments are the
(
self,
*args,
zs=0,
zdir="z",
depthshade=None,
depthshade_minalpha=None,
axlim_clip=False,
**kwargs
)
| 944 | """ |
| 945 | |
| 946 | def __init__( |
| 947 | self, |
| 948 | *args, |
| 949 | zs=0, |
| 950 | zdir="z", |
| 951 | depthshade=None, |
| 952 | depthshade_minalpha=None, |
| 953 | axlim_clip=False, |
| 954 | **kwargs |
| 955 | ): |
| 956 | """ |
| 957 | Create a collection of flat 3D paths with its normal vector |
| 958 | pointed in *zdir* direction, and located at *zs* on the *zdir* |
| 959 | axis. 'zs' can be a scalar or an array-like of the same length as |
| 960 | the number of paths in the collection. |
| 961 | |
| 962 | Constructor arguments are the same as for |
| 963 | :class:`~matplotlib.collections.PathCollection`. In addition, |
| 964 | keywords *zs=0* and *zdir='z'* are available. |
| 965 | |
| 966 | Also, the keyword argument *depthshade* is available to |
| 967 | indicate whether or not to shade the patches in order to |
| 968 | give the appearance of depth (default is *True*). |
| 969 | This is typically desired in scatter plots. |
| 970 | |
| 971 | *depthshade_minalpha* sets the minimum alpha value applied by |
| 972 | depth-shading. |
| 973 | """ |
| 974 | if depthshade is None: |
| 975 | depthshade = rcParams['axes3d.depthshade'] |
| 976 | if depthshade_minalpha is None: |
| 977 | depthshade_minalpha = rcParams['axes3d.depthshade_minalpha'] |
| 978 | self._depthshade = depthshade |
| 979 | self._depthshade_minalpha = depthshade_minalpha |
| 980 | self._in_draw = False |
| 981 | super().__init__(*args, **kwargs) |
| 982 | self.set_3d_properties(zs, zdir, axlim_clip) |
| 983 | self._offset_zordered = None |
| 984 | |
| 985 | def draw(self, renderer): |
| 986 | with self._use_zordered_offset(): |
nothing calls this directly
no test coverage detected