[haskell-gnuplot] handling of tuples (Was: latest darcs)

Henning Thielemann lemming at henning-thielemann.de
Thu May 7 07:27:32 EDT 2009

allan schrieb:
> Hi
> Okay so I'm trying to use
> Simple.plotPathsStyle
> which takes in a list of pairs consisting of a plotStyle and a list of
> pairs both of the same type. Generally doubles.
> Now the problem is that this then calls: Graphics.Gnuplot.Plot.list
> which creates the contents of the comma-separated-value file with:
> unlines (map show dat)
> which will unfortunately produce something like the output I have shown
> below i.e.
> (0.1, 1.0)
> (0.2, 1.2)

This was a stupid typo. plotPathsStyle must call Plot2D.path not
Plot2D.list. Does this also answer the other question?

More information about the Gnuplot mailing list