[racket] Plot to png

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Jan 17 09:24:55 EST 2011

If you specify out-file as an initialisation parameter I think it will
be saved to the named file.

#lang scheme
(require plot)

(plot
 (line sin)
 #:out-file "foo.png")

HTH,
N.

On Mon, Jan 17, 2011 at 12:18 PM, Milan Markovic <zivotinja at gmail.com> wrote:
> Hello everybody,
> I looked several times through the docs and couldn't find anything to solve
> my problem.
> I was wondering if I could save a plot directly to an image file without
> having to "fish" it out of the REPL and right click. I am looking into
> automatically creating a series of graphs directly evaluating scheme code,
> therefore using gplot lib, which is also pretty good would be an overkill.
> Any ideas?
> Thnx,
> Milan


Posted on the users mailing list.