easyplot

A tiny plotting library, utilizes gnuplot for plotting.

http://hub.darcs.net/scravy/easyplot

Stackage Nightly 2025-04-19:1.0
Latest on Hackage:1.0

See all snapshots easyplot appears in

MIT licensed and maintained by Julian Fleischer
This version can be pinned in stack with:easyplot-1.0@sha256:3fec6ccf425b370ab668eb342bc4cd92777880653e27a982db7b225fd007cb2b,1936

Module documentation for 1.0

Depends on 2 packages(full list with versions):

A tiny plotting library for Haskell, using gnuplot for rendering.

Developed and tested using Mac OS X 10.7.3 with gnuplot 4.4 (via MacPorts). Compiles using GHC 7.0.4

Make sure gnuplot is in your path and everything should work.

Some sample plots:

plot X11 $ Data2D [Title "Sample Data"] [] [(1, 2), (2, 4), ...]
plot X11 $ Function2D [Title "Sine and Cosine"] [] (\x -> sin x * cos x)
plot X11 sin
plot (PNG "plot.png") (sin . cos)
plot X11 $ Gnuplot2D [Color Blue] [] "2**cos(x)"
plot X11 [ Data2D [Title "Graph 1", Color Red] [] [(x, x ** 3) | x <- [-4,-3.9..4]]
         , Function2D [Title "Function 2", Color Blue] [] (\x -> negate $ x ** 2) ]
plot' [Interactive] X11 $ Gnuplot3D [Color Magenta] [] "x ** 2 + y ** 3"