public static void plot(System.Collections.Generic.IEnumerable <double> x, System.Collections.Generic.IEnumerable <double> y) { var chart2d = new Computator.NET.Charting.RealCharting.Chart2D(); chart2d.AddDataPoints(System.Linq.Enumerable.ToList(y), System.Linq.Enumerable.ToList(x)); var plotForm = new Computator.NET.Charting.PlotForm(chart2d); plotForm.Show(); }
public static void plot(System.Func <double, double> fx, params System.Collections.Generic.IEnumerable <double>[] xys) { var chart2d = new Computator.NET.Charting.RealCharting.Chart2D(); chart2d.AddFunction(new Computator.NET.DataTypes.Function(fx, Computator.NET.DataTypes.FunctionType.Real2D)); for (int i = 0; i < xys.Length - 1; i++) { chart2d.AddDataPoints(System.Linq.Enumerable.ToList(xys[i]), System.Linq.Enumerable.ToList(xys[i + 1])); } var plotForm = new Computator.NET.Charting.PlotForm(chart2d); plotForm.Show(); }