Racket | (require iup/mglplot) |
---|---|
CHICKEN | (require-extension iup-mglplot) |
(mglplot #: ...) → ihandle?
(mgllabel [title (or/c string? #f) #f] #: ...) → ihandle?
(call-with-mglplot [handle ihandle?] [proc (-> ihandle? any)] #:dimension [dimension integer? 2]) → any
(mglplot-add! [handle ihandle?] [x (or/c string? real?)] [y real?] [z (or/c real? #f) #f] [sample-index (or/c integer? #f) #f] [index (or/c integer? #f) #f]) → void?
x
must be a string or a real number depends on the setting of the
dimension
argument to the call-with-mglplot
invocation that
created the dataset: One-dimensional data sets can be labeled with
strings while two- and three-dimensional data sets consist of numeric
tuples.
If sample-index
is #f
, the sample is appended to the
dataset and the call to mglplot-add!
must be within the dynamic
context of a call to call-with-mglplot
.
If sample-index
is a number, the sample is inserted into the
dataset before the given sample index. The call to mglplot-add!
does not have to be within the dynamic context of a call to
call-with-mglplot
in this case.
The dataset to which the new sample should be added may be specified explicitly
by its index through the index
argument. If the index
argument is false, the current dataset of the plotting canvas is used.
(mglplot-x/y/z->pixel-x/y [handle ihandle?] [x real?] [y real?] [z real? 0.0]) → (values integer? integer?)
(mglplot-paint-to [handle ihandle?] [format string?] [file string?] [width integer? 0] [height integer? 0] [dpi real? 0.0]) → void?
"EPS"
or "SVG"
. If the width, height
and resolution are not specified, the same values as for the on-screen
representation of the plot are used.