/// <summary> /// Plot data from arrays of matched X/Y points /// </summary> public void Scatter( double[] xs, double[] ys, string label = null, SKColor?color = null, bool secondY = false ) { var style = new Style( label: label, color: color, plotNumber: plottables.Count, secondY: secondY ); var scatterPlot = new Plottables.Scatter(xs, ys, style); plottables.Add(scatterPlot); if (style.secondY) { axes2.y.display = true; } AutoAxis(); }
public void Scatter(double[] xs, double[] ys, Style style = null) { if (style is null) { style = new Style(colorIndex: plottables.Count); } var scatterPlot = new Plottables.Scatter(xs, ys, style); plottables.Add(scatterPlot); }