klyn.gui.windows.charts.KlynPlotWidget.scatter
method
public scatter(x as NDArray<Double>, y as NDArray<Double>, label as String = "", color as String = "", size as Double = 36.0, values as IList<Double> = null, sizes as IList<Double> = null, colorMap as String = "coolwarm", vmin as Double = nan, vmax as Double = nan, sortByValue as Boolean = false) as Void
Description

Adds circular markers from one-dimensional arrays.

Parameters
ParameterDescription
xX coordinates.
yY coordinates of equal length; non-finite pairs are omitted.
labelLegend label.
colorOptional marker color; otherwise use the color cycle.
sizeMarker area in square points (default 36).
valuesOptional per-point scalar colors; copied.
sizesOptional per-point areas in square points; copied.
colorMapScalar palette name; currently coolwarm.
vminMinimum color value, or nan for the data minimum.
vmaxMaximum color value, or nan for the data maximum.
sortByValueDraw inexpensive/low values first, preserving coordinate alignment.
Throws
  • ValueException for mismatched lengths, non-1D arrays or invalid size. Example: chart.scatter(x, x.sin(), label="samples")