简体   繁体   English

更喜欢 XPlot 还是 F# 图表?

[英]Prefer XPlot or F# Charting?

I am struggling to understand the difference between XPlot and F# Charting.我正在努力理解 XPlot 和 F# Charting 之间的区别。 Each is developed in the context of FsLab, each provides an easy way to display various sorts of charts.每个都是在 FsLab 的上下文中开发的,每个都提供了一种显示各种图表的简单方法。 Even the syntax seems to be nearly the same.甚至语法似乎也几乎相同。

Maybe it depends on what I want to chart?也许这取决于我想绘制什么?

In my case I simply would like to display several lines in one chart.就我而言,我只想在一张图表中显示多条线。 Ie something like即像在此处输入图片说明

My application has no GUI per se.我的应用程序本身没有 GUI。 I just would like to open windows with the charts every now and then while the main application continues execution - or depending on the application's mode, just dump the charts to files.我只是想不时地打开带有图表的窗口,而主应用程序继续执行 - 或者根据应用程序的模式,只需将图表转储到文件中。

F# Charting is implemented as a wrapper over System.Windows.Forms.DataVisualization.Charting allowing to use (almost) all of Windows Forms charting capabilities. F# Charting实现为System.Windows.Forms.DataVisualization.Charting的包装器,允许使用(几乎)所有Windows 窗体图表功能。 A cross-platform variant of F# Charting for Mono/.Net implements the same set of capabilities using Gtk . F# Charting for Mono/.Net 的跨平台变体使用Gtk实现了相同的功能集。

XPlot is much more feature-rich chart plotting solution based on Google Charts and Plotly javascript libraries, which is cross-platform. XPlot是基于Google ChartsPlotly javascript 库的功能更丰富的图表绘制解决方案,它是跨平台的。

So, if you need just elementary chart combinations and use F# on Windows your best native platform bet is F# Charting .因此,如果您只需要基本的图表组合并在 Windows 上使用 F#,那么您最好的原生平台选择是F# Charting

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM