[racket] Plot to png

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Jan 17 09:37:06 EST 2011

I see that `#:out-file' is missing from the docs, and I'll fix that.

At Mon, 17 Jan 2011 14:24:55 +0000, Noel Welsh wrote:
> 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
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/users


Posted on the users mailing list.