gnuplot: 2D and 3D plots using gnuplot

[ bsd3, graphics, library, math ] [ Propose Tags ]

This is a wrapper to gnuplot which lets you create 2D and 3D plots.

Start a simple session with cabal repl. If not already loaded, call :module Graphics.Gnuplot.Simple in order to load Graphics.Gnuplot.Simple which is ready for use in GHCi. It does not address all fancy gnuplot features in order to stay simple. For more sophisticated plots, especially batch generated graphics, I recommend Graphics.Gnuplot.Advanced. This module contains also an overview of the hierarchy of objects.

Examples for using this interface can be found in the Demo module. In order to compile this and install an example data file, use the Cabal flag buildExamples:

$ cabal install -fbuildExamples gnuplot

With the Cabal flags executePipe and executeShell you can switch to more convenient but probably less portable ways of feeding gnuplot with a script.

Alternative packages: plot, HPlot, Chart, textPlot, easyplot


Automatic Flags

Build example executables


Avoid a temporary gnuplot script by running gnuplot with runInteractiveProcess


Avoid a temporary gnuplot script by calling gnuplot via a UNIX shell and its piping syntax


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1, 0.2, 0.3, 0.3.2, 0.3.3,, 0.3.4, 0.4,,, 0.4.1,, 0.4.2, 0.5,,, 0.5.1, 0.5.2,,, 0.5.3,, 0.5.4,,, 0.5.5,,,, 0.5.6,, 0.5.7
Change log
Dependencies array (>=0.1 && <0.6), base (>=2 && <5), containers (>=0.1 && <0.8), data-accessor (>=0.2.2 && <0.3), data-accessor-transformers (>=0.2.1 && <0.3), deepseq (>=1.0 && <1.6), filepath (>=1.1 && <1.6), gnuplot, process (>=1.0 && <1.7), semigroups (>=0.1 && <1.0), shell-utility (>=0.0 && <0.2), temporary (>=1.1 && <1.4), time (>=1.5 && <1.14), transformers (>=0.3 && <0.7), utility-ht (>=0.0.12 && <0.1) [details]
License BSD-3-Clause
Author Henning Thielemann <>
Maintainer Henning Thielemann <>
Revised Revision 2 made by HenningThielemann at 2024-02-03T16:06:03Z
Category Graphics, Math
Home page
Source repo this: darcs get --tag 0.5.7
head: darcs get
Uploaded by HenningThielemann at 2022-02-13T21:06:52Z
Distributions LTSHaskell:0.5.7, NixOS:0.5.7, Stackage:0.5.7
Reverse Dependencies 10 direct, 4 indirect [details]
Executables gnuplot-demo
Downloads 33461 total (194 in the last 30 days)
Rating 1.5 (votes: 3) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-02-13 [all 1 reports]