来自:https://github.com/scottplot/scottplot
使用特别简单:
Nuget 中添加 ScottPlot.WinForms
,然后拖动控件到窗体(v4.7.2),写下以下代码到窗体加载事件即可:
double[] xs = new double[] {1, 2, 3, 4, 5}; double[] ys = new double[] {1, 4, 9, 16, 25}; formsPlot1.Plot.AddScatter(xs, ys);