[haskell-gnuplot] Plotting several lines to PNG file
dokondr at gmail.com
Wed Dec 7 20:42:04 GMT 2011
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
On Wed, Dec 7, 2011 at 11:27 PM, dokondr <dokondr at gmail.com> wrote:
> Thanks for your help!
> How can I control the colors of lines on the plot?
> For example in function:
> plotPaths  [greenXYList, blueXYList]
> What should I do to draw all pairs in greenXYList as green line and all
> pairs in blueXYList as blue line?
> On Wed, Dec 7, 2011 at 8:37 PM, Henning Thielemann <
> lemming at henning-thielemann.de> wrote:
>> dokondr schrieb:
>> > Any idea how to save plot to a PNG file?
>> Use the Attribute "PNG FilePath", but I assumed you already found that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnuplot