public scatter<T extends AbstractNumber>(x as NDArray<T>, y as NDArray<T>, label as String = "", color as String = "", size as Double = 36.0, values as NDArray<T> = null, sizes as NDArray<T> = null, colorMap as String = "coolwarm", vmin as Double = nan, vmax as Double = nan, sortByValue as Boolean = false) as Void
Adds a scatter directly from typed numeric vectors and optional attribute tensors. Converts to owned Double plotting snapshots once, not on repaint. This accepts FP16/FP32 and integer data without application-side loops.
| Parameter | Description |
|---|---|
<T> | Coordinate and optional attribute tensor numeric precision. |
x | One-dimensional horizontal coordinates. |
y | One-dimensional vertical coordinates of equal length. |
label | Legend label. |
color | Fixed color, incompatible with scalar color values. |
size | Uniform marker area in square points. |
values | Optional one-dimensional per-point color values. |
sizes | Optional one-dimensional non-negative marker areas. |
colorMap | Scalar palette, currently coolwarm. |
vmin | Minimum scalar color value; nan infers it. |
vmax | Maximum scalar color value; nan infers it. |
sortByValue | Draw greater scalar values last. |
chart.scatter(features[:, 7], features[:, 6], values=targets)