更喜欢 XPlot 还是 F# 图表?

Prefer XPlot or F# Charting?

我很难理解 XPlot 和 F# Charting 之间的区别。每个都是在 FsLab 的上下文中开发的,每个都提供了一种显示各种图表的简单方法。甚至语法似乎也几乎相同。

也许这取决于我想要图表?

就我而言,我只想在一个图表中显示多条线。 IE。像

我的应用程序本身没有 GUI。我只是想在主应用程序继续执行的同时不时打开带有图表的 windows - 或者根据应用程序的模式,将图表转储到文件中。

F# Charting is implemented as a wrapper over System.Windows.Forms.DataVisualization.Charting allowing to use (almost) all of Windows Forms charting capabilities. A cross-platform variant of F# Charting for Mono/.Net implements the same set of capabilities using Gtk.

XPlot is much more feature-rich chart plotting solution based on Google Charts and Plotly javascript 个库,即 cross-platform.

因此,如果您只需要基本图表组合并在 Windows 上使用 F#,您最好的本机平台选择是 F# Charting