Racket | (require iup/pplot) |
---|---|
CHICKEN | (require-extension iup-pplot) |
(pplot #: ...) → ihandle?
(call-with-pplot [handle ihandle?] [proc (-> ihandle? any)] #:x-string? [x-string? any/c #f]) → any
(pplot-add! [handle ihandle?] [x (or/c string? real?)] [y real?] [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 xdata-string?
argument to the call-with-pplot
invocation that created the dataset.
If sample-index
is #f
, the sample is appended to the
dataset and the call to pplot-add!
must be within the dynamic
context of a call to call-with-pplot
.
If sample-index
is a number, the sample is inserted into the
dataset before the given sample index. The call to pplot-add!
does not have to be within the dynamic context of a call to
call-with-pplot
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.
(pplot-x/y->pixel-x/y [handle ihandle?] [x real?] [y real?]) → (values integer? integer?)
(pplot-paint-to [handle ihandle?] [canvas canvas?]) → void?
canvas
should be a pointer to a canvas
object created using the CD graphics library.