Create a scatter plot. Parameters ---------- xs, ys : array-like The data positions. zs : float or array-like, default: 0 The z-positions. Either an array of the same length as *xs* and *ys* or a single value to place all
(self, xs, ys, zs=0, zdir='z', s=20, c=None, depthshade=None,
*args,
depthshade_minalpha=None,
axlim_clip=False,
**kwargs)
| 3145 | "edgecolors", "c", "facecolor", |
| 3146 | "facecolors", "color"]) |
| 3147 | def scatter(self, xs, ys, zs=0, zdir='z', s=20, c=None, depthshade=None, |
| 3148 | *args, |
| 3149 | depthshade_minalpha=None, |
| 3150 | axlim_clip=False, |
| 3151 | **kwargs): |
| 3152 | """ |
| 3153 | Create a scatter plot. |
| 3154 | |
| 3155 | Parameters |
| 3156 | ---------- |
| 3157 | xs, ys : array-like |
| 3158 | The data positions. |
| 3159 | zs : float or array-like, default: 0 |
| 3160 | The z-positions. Either an array of the same length as *xs* and |
| 3161 | *ys* or a single value to place all points in the same plane. |
| 3162 | zdir : {'x', 'y', 'z', '-x', '-y', '-z'}, default: 'z' |
| 3163 | The axis direction for the *zs*. This is useful when plotting 2D |
| 3164 | data on a 3D Axes. The data must be passed as *xs*, *ys*. Setting |
| 3165 | *zdir* to 'y' then plots the data to the x-z-plane. |
| 3166 | |
| 3167 | See also :doc:`/gallery/mplot3d/2dcollections3d`. |
| 3168 | |
| 3169 | s : float or array-like, default: 20 |
| 3170 | The marker size in points**2. Either an array of the same length |
| 3171 | as *xs* and *ys* or a single value to make all markers the same |
| 3172 | size. |
| 3173 | c : :mpltype:`color`, sequence, or sequence of colors, optional |
| 3174 | The marker color. Possible values: |
| 3175 | |
| 3176 | - A single color format string. |
| 3177 | - A sequence of colors of length n. |
| 3178 | - A sequence of n numbers to be mapped to colors using *cmap* and |
| 3179 | *norm*. |
| 3180 | - A 2D array in which the rows are RGB or RGBA. |
| 3181 | |
| 3182 | For more details see the *c* argument of `~.axes.Axes.scatter`. |
| 3183 | depthshade : bool, default: :rc:`axes3d.depthshade` |
| 3184 | Whether to shade the scatter markers to give the appearance of |
| 3185 | depth. Each call to ``scatter()`` will perform its depthshading |
| 3186 | independently. |
| 3187 | |
| 3188 | depthshade_minalpha : float, default: :rc:`axes3d.depthshade_minalpha` |
| 3189 | The lowest alpha value applied by depth-shading. |
| 3190 | |
| 3191 | .. versionadded:: 3.11 |
| 3192 | |
| 3193 | axlim_clip : bool, default: False |
| 3194 | Whether to hide the scatter points outside the axes view limits. |
| 3195 | |
| 3196 | .. versionadded:: 3.10 |
| 3197 | |
| 3198 | data : indexable object, optional |
| 3199 | DATA_PARAMETER_PLACEHOLDER |
| 3200 | |
| 3201 | **kwargs |
| 3202 | All other keyword arguments are passed on to `~.axes.Axes.scatter`. |
| 3203 | |
| 3204 | Returns |