About

Metadata

  • Last updated , by HenningThielemann
  • License BSD-3-Clause
  • Categories Mathematics, Graphics
  • Maintained by: Henning Thielemann <haskell@henning-thielemann.de>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.6.5
  2. 7.10.3

Package Flags

Use the -f option with cabal commands to enable flags

    buildexamples (off by default)

    Build example executables

    executepipe (off by default)

    Avoid a temporary gnuplot script by running gnuplot with runInteractiveProcess

    executeshell (off by default)

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

Readme

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