Haskell绘图库与MATLAB相似 [英] Haskell plotting library similar to MATLAB
本文介绍了Haskell绘图库与MATLAB相似的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有Haskell库用于绘制类似于MATLAB,scilab或matplotlib的图?它们都有非常简单的界面,像状态机一样工作:
plot(xs,ys)
show( ) - 打开窗口并绘图
在窗口中显示图并且有能力把它们写到磁盘上。
解决方案
那么 plotList 来自 Graphics。 Gnuplot.Simple
:
plotList [] [(1,1),(2,2) ,(3,3)]
Is there a Haskell library for drawing plots similar to MATLAB, scilab or matplotlib? They all have very simple interfaces, which work like a state machine:
plot(xs, ys)
show() -- opens window with plot
It would be nice to display plots in a window and to have ability to write them to disk.
解决方案
What about gnuplot?
For example, plotList
from Graphics.Gnuplot.Simple
:
plotList [] [(1, 1), (2, 2), (3, 3)]
这篇关于Haskell绘图库与MATLAB相似的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文