klyn.gui.windows.charts.KlynPlotWidget.plot
method
public plot(x as NDArray<Double>, y as NDArray<Double>, format as String = "", label as String = "", color as String = "", lineWidth as Double = 1.5) as Void
Description

Adds a curve from one-dimensional arrays; inputs are copied.

Parameters
ParameterDescription
xX coordinates, with the same length as y.
yY coordinates. Non-finite pairs break the line.
formatShort style, e.g. "r:", "g--", "bo-".
labelLegend label; empty labels are excluded.
colorOptional color overriding the format or color cycle.
lineWidthPositive stroke width in points at 100 DPI.
Throws
  • ValueException for mismatched lengths, non-1D arrays or invalid styles. Example: chart.plot(x, x.sin(), "r:", label="sin")