src/graph

Example:

import math, arraymancer
let x = arange(0.0,10,0.1)
let y = sin(x)
let y2 = cos(x)
var rt = plot(x.data,y.data)
rt.plot(x.data,y2.data, col=Viridis.orange)
rt.drawgrid = true
rt.saveTo("tdraw.png")
rt.saveTo("tdraw.svg")

Procs

proc saveTo(sur: var Surface; filename: string) {...}{.
    raises: [IOError, ValueError, Exception, OSError], tags: [WriteIOEffect].}
Convience function. Saves img into filename
proc saveTo(sur: Surface; filename: string) {...}{.raises: [IOError, ValueError],
    tags: [WriteIOEffect].}
Convience function. Saves img into filename