// detailed function (named arguments) public void AddPoint(double x, double y, int markerSize = 5, Color?markerColor = null, Style.MarkerShape markerShape = Style.MarkerShape.circleFilled) { var style = new Style(plotObjects.Count()); style.markerSize = markerSize; style.markerShape = markerShape; style.markerColor = markerColor.GetValueOrDefault(style.markerColor); AddPoint(x, y, style); }
// detailed function (named arguments) public void AddScatter(double[] xs, double[] ys, int markerSize = 3, Color?markerColor = null, Style.MarkerShape markerShape = Style.MarkerShape.circleFilled, int lineWidth = 1, Color?lineColor = null, Style.LineStyle lineStyle = Style.LineStyle.solid) { xs = xs ?? AscendingNumbers(ys.Length); var style = new Style(plotObjects.Count()); style.markerSize = markerSize; style.markerColor = markerColor.GetValueOrDefault(style.markerColor); style.markerShape = markerShape; style.lineWidth = lineWidth; style.lineColor = lineColor.GetValueOrDefault(style.lineColor); style.lineStyle = Style.LineStyle.solid; AddScatter(xs, ys, style); }