[plt-scheme] plot's keyword arguments

From: Noel Welsh (noelwelsh at gmail.com)
Date: Thu Aug 13 09:43:31 EDT 2009

Change language to module.

N.

On Thu, Aug 13, 2009 at 1:50 PM, Gregory Marton<gremio at csail.mit.edu> wrote:
> Hi folks,
>
> This may be a newbie error.  I'm in the Pretty Big language, and say
>   require 'plot'
> then copy-paste the example from
>  http://docs.plt-scheme.org/plot/Quick_Start.html#%28part._.Basic_.Plotting%29
>
>   (plot (line (lambda (x) (sin x)))
>         #:x-min -1 #:x-max 1 #:title "Sin(x)")
>
> and get the error
>   procedure plot: expects 1 argument plus optional arguments with keywords
>   #:bgcolor, #:fgcolor, #:height, #:lncolor, #:out-file, #:title, #:width,
>   #:x-label, #:x-max, #:x-min, #:y-label, #:y-max, and #:y-min, given 7:
>   #<procedure> #:x-min -1 #:x-max 1 #:title "Sin(x)"
>


Posted on the users mailing list.