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

Function scatter

lib/matplotlib/pyplot.py:4109–4147  ·  view source on GitHub ↗
(
    x: float | ArrayLike,
    y: float | ArrayLike,
    s: float | ArrayLike | None = None,
    c: ArrayLike | Sequence[ColorType] | ColorType | None = None,
    marker: MarkerType | None = None,
    cmap: str | Colormap | None = None,
    norm: str | Normalize | None = None,
    vmin: float | None = None,
    vmax: float | None = None,
    alpha: float | None = None,
    linewidths: float | Sequence[float] | None = None,
    *,
    edgecolors: Literal["face", "none"] | ColorType | Sequence[ColorType] | None = None,
    colorizer: Colorizer | None = None,
    plotnonfinite: bool = False,
    data: DataParamType = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

4107# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
4108@_copy_docstring_and_deprecators(Axes.scatter)
4109def scatter(
4110 x: float | ArrayLike,
4111 y: float | ArrayLike,
4112 s: float | ArrayLike | None = None,
4113 c: ArrayLike | Sequence[ColorType] | ColorType | None = None,
4114 marker: MarkerType | None = None,
4115 cmap: str | Colormap | None = None,
4116 norm: str | Normalize | None = None,
4117 vmin: float | None = None,
4118 vmax: float | None = None,
4119 alpha: float | None = None,
4120 linewidths: float | Sequence[float] | None = None,
4121 *,
4122 edgecolors: Literal["face", "none"] | ColorType | Sequence[ColorType] | None = None,
4123 colorizer: Colorizer | None = None,
4124 plotnonfinite: bool = False,
4125 data: DataParamType = None,
4126 **kwargs,
4127) -> PathCollection:
4128 __ret = gca().scatter(
4129 x,
4130 y,
4131 s=s,
4132 c=c,
4133 marker=marker,
4134 cmap=cmap,
4135 norm=norm,
4136 vmin=vmin,
4137 vmax=vmax,
4138 alpha=alpha,
4139 linewidths=linewidths,
4140 edgecolors=edgecolors,
4141 colorizer=colorizer,
4142 plotnonfinite=plotnonfinite,
4143 **({"data": data} if data is not None else {}),
4144 **kwargs,
4145 )
4146 sci(__ret)
4147 return __ret
4148
4149
4150# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 3

gcaFunction · 0.85
sciFunction · 0.85
scatterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…