Eto应用程序快速入门
第一步:安装ScottPlot.Eto
NuGet软件包
第二步:添加一个ScottPlot.Eto.PlotView
控件添加到窗体:
var plotView = new ScottPlot.Eto.PlotView();
double[] xs = new double[] { 1, 2, 3, 4, 5 };
double[] ys = new double[] { 1, 4, 9, 16, 25 };
plotView.Plot.AddScatter(xs, ys);
this.Content = plotView;
WPF | GTK | OSX |
---|---|---|
![]() |
![]() |
![]() |
MacOS与Linux
斯科特普洛特依靠System.Drawing.Common
这需要libgdiplus在非Windows系统上:
MacOS:
brew install mono-libgdiplus
Linux:
apt-get install -y libgdiplus
您可能还需要特别添加System.Drawing.Common
项目包:
dotnet add package System.Drawing.Common