不要进入gnuplot终端

Dan*_*ter 16 haskell gnuplot

使用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
Run Code Online (Sandbox Code Playgroud)

我正在使用Windows 7 x64和Haskell Platform 2013.2.0.0,如果这有所不同的话.

Eth*_*eal 1

请尝试以下操作:

bind Close "exit gnuplot"
Run Code Online (Sandbox Code Playgroud)

应该可以解决问题!

如果您不熟悉,请参阅此处了解绑定详细信息:绑定参考