Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't enter gnuplot terminal

Using the gnuplot module, after I plot a graph I get put into the gnuplot console. Is there a way to stop this happening? I never use it, and it's annoying to have to type exit after closing each graph, especially when I'm testing a sequence of plots.

For example:

module Main where
import Graphics.Gnuplot.Simple
main = do
    let xs = linearScale 100 (-10, 10) :: [Float]
    plotFunc [] xs sin
    plotFunc [] xs cos

I'm using Windows 7 x64 and the Haskell Platform 2013.2.0.0 if that makes a difference.

like image 800
Daniel Buckmaster Avatar asked May 28 '13 23:05

Daniel Buckmaster


People also ask

What is gnuplot terminal?

gnuplot is a command-driven interactive function plotting program. It can be used to plot functions and data points in both two- and three- dimensional plots in many different formats. It is designed primarily for the visual display of scientific data.

How to plot data in gnuplot?

To plot functions simply type: plot [function] at the gnuplot> prompt. Discrete data contained in a file can be displayed by specifying the name of the data file (enclosed in quotes) on the plot or splot command line. Data files should have the data arranged in columns of numbers.

How to save gnuplot?

There are two ways to save your work in gnuplot: you can save the gnuplot commands used to generate a plot, so that you can regenerate the plot at a later time. Or you can export the graph to a file in a standard graphics file format, so that you can print it or include it in web pages, documents, or presentations.

Is gnuplot part of gnu?

gnuplot is not related to the GNU project or the FSF in any but the most peripheral sense. Our software was designed completely independently and the name "gnuplot" was actually a compromise.


1 Answers

Try the following:

bind Close "exit gnuplot"

It should do the trick!

See here for bind details if you aren't familiar: bind reference

like image 53
Ethereal Avatar answered Oct 10 '22 00:10

Ethereal