使用gnuplot模块绘制图形后,会进入gnuplot
控制台。有没有什么方法可以阻止这种情况发生?我从来不使用它,每次关闭图形后都要输入exit
很烦人,特别是当我正在测试一系列的绘图时。
例如:
module Main where
import Graphics.Gnuplot.Simple
main = do
let xs = linearScale 100 (-10, 10) :: [Float]
plotFunc [] xs sin
plotFunc [] xs cos
如果这有任何区别的话,我正在使用Windows 7 x64和Haskell Platform 2013.2.0.0。
plot Windows sin
会创建一个绘图窗口,但立即关闭。调用plot' [Interactive] Windows sin
会像以前一样打开gnuplot控制台。等我有机会访问安装了该平台的Mac电脑时,我会试一下。 - Daniel Buckmasterpersistent
(非交互式)吗?我知道至少在CLI或C调用中,这是你所需要的。 - zebediah49