[haskell-gnuplot] recommendations for a gnuplot tutorial

Michael Litchard michael at schmong.org
Thu May 26 00:11:14 BST 2011


Thanks for the tip. I'm also trying to use your Demo.hs to create a
histogram using the file2d function. I'm not sure which functions
could help me do this. Could you provide a modified file2d function
for an example, or just tell me which functions would help me do this?

On Tue, May 24, 2011 at 12:46 AM, Henning Thielemann
<lemming at henning-thielemann.de> wrote:
>
> 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