[haskell-gnuplot] Plotting several lines to PNG file

Henning Thielemann lemming at henning-thielemann.de
Wed Dec 7 17:02:30 GMT 2011

On Wed, 7 Dec 2011, dokondr wrote:

> It would be graet if somebody could give me a simple example of
> plotting two lines and
> saving the plot to a file in PNG format using Graphics.Gnuplot.Simple.
> Each line is defined as a list of (x,y) pairs and I need to plot them in different
> colors

plotPaths should do that

> and show corresponding x,y values on the plot axises.

I even do not know how to do this with the gnuplot program. Do you have an 

In general, sophisticated plots should be made with the Advanced interface 
as demonstrated in the Demo file. The Simple interface is intended for 
quick experiments in GHCi.


More information about the Gnuplot mailing list