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
Exports
-
Green, HalfTBlack, Yellow, color, $, HalftWhite, Purple, graph/color, Blue, blend, Red, Color, White, HalfTBlue, HalfTRed, HalfTGreen, toColor, blend, Black, withAlpha, Viridis, Transparent, plot, plot, graph/plot, plot, []=, initSurface, Axis, initSurface, graph/surface, pixelFromVal, pixelFromVal2, grid, fillWith, Surface, [], []=, initAxis, box, [], saveToPng, png, graph/backendpng, saveToSvg, graph/backendsvg, svg