[haskell-gnuplot] recommendations for a gnuplot tutorial

Henning Thielemann lemming at henning-thielemann.de
Tue May 24 08:46:08 BST 2011


On Mon, 23 May 2011, Michael Litchard wrote:

> I've looked for a tutorial for using the Haskell gnuplot wrapper, and
> can't find anything. If you can think of one off the top of your head,
> please let me know. I'd like to see how to use it to generate 2D and
> 3D histograms expressed in a png (or any) file. As far as I can see,
> the examples that come with gnuplot don't generate files.

My tutorial is the Demo.hs module. :-) In order to write a file to disk, 
insert the following into Demo.hs:

import qualified Graphics.Gnuplot.Terminal.PNG as PNG

Plot.plot (PNG.cons "graph.png") simple2d



More information about the Gnuplot mailing list