[haskell-gnuplot] Plotting several lines to PNG file

Henning Thielemann lemming at henning-thielemann.de
Thu Dec 8 10:14:36 GMT 2011


On Wed, 7 Dec 2011, dokondr wrote:

> On Mac OS X could not save my drawing to PNG file:
> 
> Prelude Graphics.Gnuplot.Simple> let l1 = [(x, 2*x) | x <- [1 .. 10]]
> Prelude Graphics.Gnuplot.Simple> let l2 = [(x, 3*x) | x <- [1 .. 10]]
> Prelude Graphics.Gnuplot.Simple> plotPaths [PNG "test.png"]  [l1, l2]
> plotPaths [PNG "test.png"]  [l1, l2]
> 
> set terminal png; set output "test.png"
>              ^
> "curve.gp", line 1: unknown or ambiguous terminal type; type just 'set terminal' for a
> list
> 
> Any ideas?

No idea, but if you get it working, I'd like to adapt my code accordingly.



More information about the Gnuplot mailing list