plot

A plotting library, exportable as eps/pdf/svg/png or renderable with gtk

http://github.com/amcphail/plot

Version on this page:0.2.3.11
LTS Haskell 21.25:0.2.3.11
Stackage Nightly 2024-10-31:0.2.3.12
Latest on Hackage:0.2.3.12

See all snapshots plot appears in

BSD-3-Clause licensed by Vivian McPhail
Maintained by haskell.vivian.mcphail <at> gmail <dot> com
This version can be pinned in stack with:plot-0.2.3.11@sha256:9564d62da798b74a5ab875996f45adf1c3071e161247faa9a9d1b036e6634a4a,4413

A package for creating plots, built on top of the Cairo rendering engine.

An ambitious attempt to replace gnuplot.

Monadic actions are used to configure a figure, which is a (rxc) array of subplots. Each plot displays a graph with optional heading, labels, legend, and annotations. The annotations themselves may be used to draw diagrams.

A figure is preprocessed in preparation for rendering by the Cairo renderer. The Cairo library can be used to output the figure to PS, PDF, SVG, and PNG file formats, or to display the figure in a GTK Drawable context. (see package 'plot-gtk').

The preprocessed figure can be embedded as an arbitrary Cairo render, including in a diagram created with the diagram package. Conversely, arbitrary Cairo renders can be embedded in the data region of a Figure.

The data series are type Data.Packed.Vector from hmatrix, which, when hmatrix is compiled with '-fvector', is a synonym for Data.Vector.Storable from the vector package and are thus compatible with packages such as statistics.

The example in Graphics.Rendering.Plot can be viewed at http://code.haskell.org/plot/examples/perturbed-sine.png